/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    padding-top: 76px; /* Match exact navbar height */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);  /* Rich blue gradient */
    background-size: cover;
    min-height: 70vh;  /* Changed from 100vh to 70vh */
    display: flex;
    align-items: center;
    color: white;
    padding: 60px 0;  /* Reduced padding from 100px to 60px */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;  /* Subtle pattern overlay */
}

.hero-content {
    padding: 2.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    border-bottom: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.stats-item {
    padding: 20px;
    transition: transform 0.3s ease;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0d6efd;
    margin: 10px 0;
}

.stats-text {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

/* Courses Section */
.courses-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.courses-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.05;
    pointer-events: none;
}

.section-header h2 {
    color: #2c3e50;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #0d6efd;
    border-radius: 2px;
}

.section-header p {
    color: #6c757d;
    max-width: 600px;
    margin: 1rem auto 0;
}

.course-card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;  /* Add this to contain the image zoom effect */
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.course-card .card-body {
    padding: 1.5rem;
}

.course-card .card-title {
    color: #2c3e50;
    font-weight: 600;
}

/* If you want the image to also have a subtle zoom effect on hover */
.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .card-img-top {
    transform: scale(1.03);
}

/* Footer */
.footer {
    flex-shrink: 0;
    background: #1a1a1a;
    padding: 1rem 0; /* Reduced from 1.5rem */
    margin-bottom: 0; /* Ensure no margin at bottom */
}

.footer h2 {
    font-size: 1rem; /* Make heading size smaller */
    margin-bottom: 0.75rem; /* Reduced margin */
}

.footer-links li {
    margin-bottom: 4px; /* Reduced from 6px */
}

.footer-contact li {
    margin-bottom: 4px; /* Reduced from 6px */
}

.footer hr {
    margin: 0.5rem 0; /* Reduced from 1rem */
    opacity: 0.1;
}

/* Remove bottom padding from container in footer */
.footer .container {
    padding-bottom: 0;
}

/* Update Footer Links Styling */
.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    position: relative;
    padding-left: 25px;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.footer-links a i {
    width: 20px; /* Fixed width for icons */
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a:hover i {
    transform: translateX(5px);
}

/* Update Footer Contact Styling to match */
.footer-contact li {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
}

.footer-contact li i {
    width: 20px; /* Fixed width for icons */
    margin-right: 10px;
}

/* Social Links */
.social-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        padding: 1rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .stats-item {
        margin-bottom: 20px;
    }
}

/* Add these styles to your existing style.css */
.course-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: #6c757d;
    font-size: 0.9rem;
}

.course-meta i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .course-card .card-img-top {
        height: 180px;
    }
}

/* Add these styles to your existing style.css */
.application-details {
    font-size: 0.9rem;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-top: 5px;
}

.table td {
    vertical-align: middle;
}

/* Add these styles to your existing style.css */
.modal-body .card {
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.modal-body .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.modal-body ul li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.modal-body .list-unstyled i {
    width: 20px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f8f9fa;
}

.course-meta div {
    font-size: 0.9rem;
    color: #6c757d;
}

.course-meta i {
    margin-right: 5px;
}

/* My Applications Page Styles */
.min-vh-100 {
    min-height: 100vh;
}

.application-details {
    font-size: 0.95rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid rgba(0,0,0,0.05);
}

.application-details p {
    margin-bottom: 0.5rem;
}

.application-details i {
    color: #6c757d;
    width: 20px;
    text-align: center;
}

.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
}

.badge i {
    font-size: 0.9em;
}

.table > :not(caption) > * > * {
    padding: 1rem;
}

/* Remove or comment out this style */
/* .table-hover tbody tr:hover {
    background-color: rgba(0,0,0,0.01);
} */

/* Remove these styles since we're not using connected input group anymore */
/* .input-group .form-control-lg {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
} */

/* Add these styles */
.form-control-lg {
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
}

.btn-lg {
    padding: 12px 40px;
    font-size: 1rem;
}

main {
    flex: 1 0 auto;
}

/* Course Details Page */
.course-meta i {
    width: 20px;
    text-align: center;
}

.card {
    border: none;
    border-radius: 10px;
}

.card-title i {
    opacity: 0.8;
}

.list-unstyled li {
    line-height: 1.6;
}

.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}

@media (max-width: 768px) {
    .course-meta > div {
        margin-bottom: 1rem;
    }
}

/* Add this to ensure content doesn't touch the footer */
.container {
    padding-bottom: 3rem;
}

/* Add/Update Navbar Styles */
.navbar {
    min-height: 70px; /* Logo (50px) + top padding (20px) + bottom padding (20px) */
    padding: 20px 1rem; /* Exactly 20px top and bottom padding */
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px; /* Reduced from 50px to 40px */
    width: auto;
    margin-right: 10px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

/* New Navbar Styles */
.custom-navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    height: 76px;
}

.custom-navbar .container {
    height: 100%;
    padding-top: 0;    /* Remove default container padding */
    padding-bottom: 0; /* Remove default container padding */
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.navbar-logo img {
    height: 45px;
    width: auto;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar-links a {
    color: #333;
    text-decoration: none;
}

/* Pagination Styles */
.pagination {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-link {
    color: #0d6efd;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin: 0 2px;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #0a58ca;
} 