/* General Styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Colors and Common Styles */
:root {
    --primary-color: #053774;
    --primary-hover: #042d5d;
    --dark-blue: #182a3d;
    --white: #ffffff;
}

/* Navigation and Menu Styles */
.navbar-light .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    text-transform: capitalize;
    transition: color 0.3s ease;
    padding: 1.5rem 1rem;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Breadcrumb Styling */
.breadcrumb {
    background-color: var(--dark-blue);
    margin: 0;
}

.breadcrumb-item a {
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-hover) !important;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--white);
}

/* Banner and Hero Section */
.banner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

/* Card and Shadow Effects */
.shadow-sm {
    transition: all 0.3s ease;
}

.shadow-sm:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
    border-left: 4px solid var(--primary-color);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-lg:hover {
    transform: translateX(10px);
}

/* Footer Styles */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
}

footer a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

footer .social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Main Navigation Styles */
.navbar {
    padding: 0;
    position: relative;
    z-index: 1030;
}

.navbar-light .navbar-nav .nav-link {
    padding: 1.5rem 1rem;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .banner-image {
        height: 300px;
    }
    
    .banner-image h1 {
        font-size: 2.5rem;
    }
}

/* Dropdown styles - updated with higher z-index */
.navbar-nav .dropdown {
    position: relative;
    z-index: 1031;
}

.navbar-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    z-index: 1032;
    padding: 0;
    margin-top: 0;
}

.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-in;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #333 !important;
    font-weight: 400;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1033;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color) !important;
    padding-left: 25px;
}

/* Dropdown toggle arrow */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
    content: "";
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: #f8f9fa;
        border: 0;
        box-shadow: none;
        padding: 0;
    }
    
    .dropdown-item {
        padding: 10px 15px 10px 25px;
    }
}

/* Program Section Styles */
.program-section {
    padding: 40px 0;
}

.program-category {
    margin-bottom: 20px;
}

.program-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.program-toggle:hover h2 {
    color: var(--primary-color);
}

.program-toggle h2 {
    color: #182a3d;
    font-size: 2.2rem;
    margin: 0;
    font-weight: 600;
    transition: color 0.3s ease;
}

.toggle-icon {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 300;
    transition: transform 0.3s ease;
}

/* Program Lists */
.program-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    opacity: 0;
}

.program-list.active {
    max-height: 1000px;
    opacity: 1;
    margin-top: 20px;
}

.program-list a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    background-color: #fff;
    border-left: 4px solid transparent;
    margin-bottom: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.program-list a:hover {
    border-left-color: var(--primary-color);
    background-color: #f8f9fa;
    transform: translateX(10px);
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Program Categories Colors */
.undergraduate-programs a {
    border-left-color: #4CAF50;
}

.graduate-programs a {
    border-left-color: #2196F3;
}

.professional-diplomas a {
    border-left-color: #9C27B0;
}

.short-courses a {
    border-left-color: #FF9800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .program-toggle h2 {
        font-size: 1.8rem;
    }

    .program-list a {
        padding: 12px 15px;
    }
}

/* Program Page Styles */
.program-header {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.program-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.program-header h3 {
    margin: 0;
    transition: background-color 0.3s ease;
    font-size: 1.25rem;
    padding: 1.2rem;
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
}

.program-header:hover h3 {
    background-color: #f1f3f5;
}

.toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.program-content {
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.program-content.show {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Program Cards */
.program-content .card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.program-content .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.program-content .card-body {
    padding: 1.5rem;
}

/* Program List Items */
.program-content .list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.program-content .list-unstyled li:last-child {
    border-bottom: none;
}

.program-content .fas.fa-check {
    color: var(--primary-color);
}

/* Program Buttons */
.program-content .btn-primary {
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.program-content .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Duration Badge */
.program-content .text-muted {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .program-header h3 {
        font-size: 1.1rem;
        padding: 1rem;
    }

    .program-content .card-body {
        padding: 1rem;
    }

    .program-content .btn-primary {
        width: 100%;
    }
}

/* Animation for Active State */
.program-header.active h3 {
    background-color: #f1f3f5;
}

.program-header.active .toggle-icon {
    transform: rotate(45deg);
}

/* Hover Effects for Interactive Elements */
.program-content .btn-primary:active {
    transform: translateY(0);
}

.program-header:active {
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Logo adjustments for mobile */
    .navbar-brand img {
        width: 40px;  /* Reduced width */
        height: 40px; /* Reduced height - maintaining aspect ratio */
        object-fit: contain;
    }

    .program-header h3 {
        font-size: 1.1rem;
        padding: 1rem;
    }

    .program-content .card-body {
        padding: 1rem;
    }

    .program-content .btn-primary {
        width: 100%;
    }
}

/* For very small devices */
@media (max-width: 576px) {
    .navbar-brand img {
        width: 35px;  /* Even smaller for very small devices */
        height: 35px;
    }
}

/* Default logo style for larger screens */
.navbar-brand img {
    transition: all 0.3s ease;
    max-height: 60px;  /* Original size - adjust this value as needed */
    width: auto;
}

/* Banner text adjustments */
.banner h1.display-4 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Banner text adjustments for mobile */
    .banner h1.display-4 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .banner h1.display-4 br {
        display: none; /* Remove line break on mobile */
    }
    
    .banner .lead {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }

    /* Button adjustments for mobile */
    .banner .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        margin: 0.25rem;
        white-space: normal; /* Allow text to wrap */
        max-width: 100%;
    }
}

/* For very small devices */
@media (max-width: 576px) {
    .banner h1.display-4 {
        font-size: 1.5rem;
        padding: 0 10px;
    }
    
    .banner .lead {
        font-size: 0.9rem;
        padding: 0 15px;
    }
    
    .banner .my-4 {
        margin: 1rem 0 !important;
    }
}