/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

h1,
h2,
h3,
h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #1a3a6c;
}

a {
    color: #1a6ca1;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #0d4a7a;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    margin-right: 15px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a3a6c;
}

.logo-subtext {
    font-size: 0.9rem;
    color: #666;
    margin-top: -5px;
}

/* Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1a3a6c;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 10px 15px;
    font-weight: 500;
    color: #333;
}

.nav-link:hover {
    color: #1a6ca1;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
}

.dropdown-item {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item a {
    display: block;
    color: #333;
}

.dropdown-item a:hover {
    color: #1a6ca1;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-toggle::after {
    content: " ▾";
    font-size: 0.8em;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 58, 108, 0.85), rgba(26, 58, 108, 0.9)), url('images/hbg_bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    font-weight: 300;
}

/* Main Content */
.main-content {
    padding: 60px 0;
    background-color: #fff;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #1a6ca1;
    position: relative;
}

.section-title span {
    color: #1a6ca1;
}

.about-text {
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Image Slider */
.slider-container {
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slider {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    font-size: 0.95rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.slider-btn {
    background-color: #1a6ca1;
    color: white;
    border: none;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-btn:hover {
    background-color: #0d4a7a;
}

/* Events */
.events-list {
    list-style: none;
    margin-top: 20px;
}

.event-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.event-item:last-child {
    border-bottom: none;
}

.event-date {
    display: inline-block;
    background-color: #1a3a6c;
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.85rem;
    margin-right: 10px;
}

/* Sidebar */
.sidebar-section {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #1a3a6c;
}

.news-ticker {
    height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.news-item {
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
}

.news-item:last-child {
    border-bottom: none;
}

.news-category {
    display: inline-block;
    background-color: #e9f0f7;
    color: #1a6ca1;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 8px;
}

.quick-links {
    list-style: none;
}

.quick-link-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.quick-link-item:last-child {
    border-bottom: none;
}

.quick-link-item i {
    margin-right: 10px;
    color: #1a6ca1;
}

.contact-info {
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: #1a3a6c;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #c2d4f0;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #c2d4f0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-item {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background-color: #f8fafc;
    }

    .dropdown-item {
        padding-left: 40px;
    }

    .dropdown-toggle.active+.dropdown-menu {
        max-height: 300px;
    }

    .header-container {
        padding: 15px 0;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .slider {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 1.4rem;
    }

    .logo-img {
        height: 50px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Utility Classes */
.highlight {
    background-color: #e9f0f7;
    padding: 3px 5px;
    border-radius: 3px;
}

.btn {
    display: inline-block;
    background-color: #1a6ca1;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0d4a7a;
    color: white;
}

/* Add these styles to the end of your existing styles.css file */

/* Grants Section Styles */
.grants-container {
    margin-top: 30px;
}

.grant-item {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #1a6ca1;
    transition: transform 0.3s, box-shadow 0.3s;
}

.grant-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.grant-header {
    margin-bottom: 20px;
}

.grant-title {
    font-size: 1.3rem;
    color: #1a3a6c;
    line-height: 1.4;
    margin-bottom: 5px;
}

.grant-details {
    display: grid;
    gap: 12px;
}

.grant-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.grant-label {
    font-weight: 600;
    color: #333;
    min-width: 150px;
    margin-right: 10px;
}

.grant-value {
    color: #555;
    flex: 1;
}

.grant-value.highlight {
    background-color: #e9f0f7;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    color: #1a6ca1;
    display: inline-block;
}

.grant-value.active {
    background-color: #e7f6e7;
    color: #2d7d2d;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    display: inline-block;
}

.grant-value.completed {
    background-color: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    display: inline-block;
}

/* Responsive adjustments for grants */
@media (max-width: 768px) {
    .grant-detail {
        flex-direction: column;
    }
    
    .grant-label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .grant-title {
        font-size: 1.2rem;
    }
    
    .grant-item {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .grant-title {
        font-size: 1.1rem;
    }
    
    .grant-item {
        padding: 15px;
    }
}
/* Add these styles to the end of your existing styles.css file */

/* Course Page Styles */
.course-categories {
    margin-top: 30px;
}

.course-category {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #1a6ca1;
}

.category-title {
    font-size: 1.5rem;
    color: #1a3a6c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.category-title i {
    margin-right: 10px;
    color: #1a6ca1;
}

.category-description {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.course-list {
    display: grid;
    gap: 20px;
}

.course-item {
    background-color: white;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.course-name {
    font-size: 1.2rem;
    color: #1a3a6c;
    flex: 1;
    margin-right: 15px;
}

.course-credits {
    background-color: #e9f0f7;
    color: #1a6ca1;
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.9rem;
}

.course-dept {
    background-color: #f0f7f0;
    color: #2d7d2d;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.85rem;
    margin-left: 10px;
}

.course-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.course-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

.course-code {
    font-family: monospace;
    background-color: #f5f5f5;
    padding: 2px 8px;
    border-radius: 3px;
}

.course-semester {
    color: #1a6ca1;
    font-weight: 500;
}

/* Requirements Section */
.requirements-section {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e9f0f7 100%);
    border-radius: 8px;
}

.requirements-title {
    font-size: 1.5rem;
    color: #1a3a6c;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.requirements-title i {
    margin-right: 10px;
    color: #1a6ca1;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.requirement-icon {
    margin-right: 15px;
    background-color: #e9f0f7;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.requirement-icon i {
    font-size: 1.2rem;
    color: #1a6ca1;
}

.requirement-content h4 {
    font-size: 1.1rem;
    color: #1a3a6c;
    margin-bottom: 5px;
}

.requirement-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive adjustments for courses */
@media (max-width: 768px) {
    .course-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .course-name {
        margin-bottom: 10px;
    }
    
    .course-credits, .course-dept {
        align-self: flex-start;
        margin-bottom: 10px;
    }
    
    .course-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .course-category {
        padding: 20px;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .requirement-item {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .course-item {
        padding: 15px;
    }
    
    .course-category {
        padding: 15px;
    }
    
    .requirements-section {
        padding: 20px;
    }
}

/* Add these styles to the end of your existing styles.css file */

/* Gallery Page Styles */
.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9f0f7;
}

.filter-btn {
    padding: 8px 20px;
    background-color: #f8fafc;
    border: 2px solid #e9f0f7;
    border-radius: 4px;
    color: #1a3a6c;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: #e9f0f7;
    border-color: #1a6ca1;
}

.filter-btn.active {
    background-color: #1a6ca1;
    border-color: #1a6ca1;
    color: white;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 108, 0.85);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 20px;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: white;
}

.gallery-info p {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

/* Gallery Categories Info */
.gallery-categories-info {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e9f0f7 100%);
    border-radius: 8px;
}

.gallery-categories-info h3 {
    font-size: 1.5rem;
    color: #1a3a6c;
    margin-bottom: 25px;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-info {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.category-info:hover {
    transform: translateY(-5px);
}

.category-info i {
    font-size: 2rem;
    color: #1a6ca1;
    margin-bottom: 15px;
}

.category-info h4 {
    font-size: 1.1rem;
    color: #1a3a6c;
    margin-bottom: 10px;
}

.category-info p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Lightbox Customization */
.lb-outerContainer {
    border-radius: 8px;
}

.lb-data .lb-caption {
    font-size: 1rem;
    line-height: 1.4;
    color: #333;
    font-family: 'Source Sans Pro', sans-serif;
}

.lb-data .lb-number {
    color: #1a6ca1;
    font-family: 'Source Sans Pro', sans-serif;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

/* Responsive adjustments for gallery */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-filter {
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-categories-info {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .gallery-info h3 {
        font-size: 1rem;
    }
    
    .gallery-info p {
        font-size: 0.8rem;
    }
}