/* Custom CSS for Research Innovation Center Website */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #2ecc71;
    --text-color: #333;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 70px; /* Accommodate fixed navbar */
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    display: flex;
    align-items: center;
}

    .navbar-brand img {
        margin-right: 10px;
    }

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../cord/lab.jpg');
    background-size: cover;
    background-position: center;
    padding: 150px 0;
    position: relative;
}

.hero-overlay {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}


.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    padding: 12px 25px;
    font-size: 1.1rem;
}

/* Research Highlights */
#research-highlights .card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

    #research-highlights .card:hover {
        transform: translateY(-10px);
    }

/* Impact Statistics */
#impact-stats {
    background-color: #f4f4f4;
}

.stat-box {
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

    .stat-box:hover {
        transform: scale(1.05);
    }

    .stat-box h3 {
        color: var(--primary-color);
        font-weight: bold;
    }

/* Footer */
footer {
    background-color: var(--primary-color) !important;
}

    footer a {
        color: white;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        footer a:hover {
            color: var(--secondary-color);
        }

.social-icons a {
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

    .social-icons a:hover {
        color: var(--secondary-color) !important;
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1.2rem;
    }

    .stat-box {
        margin-bottom: 20px;
    }
}


/* Mission, Vision, Objectives Section */
#mission-vision {
    background-color: #f8f9fa;
}

.section-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-color);
    opacity: 0.7;
}

.mission-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .mission-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

    .mission-card i {
        color: var(--secondary-color);
        margin-bottom: 20px;
    }

    .mission-card h3 {
        color: var(--primary-color);
        margin-bottom: 15px;
    }

    .mission-card ul {
        text-align: left;
        padding-left: 0;
    }

        .mission-card ul li {
            margin-bottom: 10px;
            position: relative;
            padding-left: 15px;
        }

            .mission-card ul li::before {
                content: '•';
                color: var(--secondary-color);
                font-weight: bold;
                display: inline-block;
                width: 1em;
                margin-left: -1em;
            }

/* Responsive adjustments */
@media (max-width: 768px) {
    .mission-card {
        margin-bottom: 20px;
    }
}


/* News Section */
#latest-news {
    background-color: #ffffff;
}

.news-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

    .news-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    }

    .news-item .card-img-top {
        height: 250px;
        object-fit: cover;
    }

    .news-item .card-title {
        color: var(--primary-color);
        font-weight: bold;
        margin-bottom: 15px;
    }

    .news-item .card-text {
        color: var(--text-color);
        margin-bottom: 15px;
    }

    .news-item .btn-outline-primary {
        border-color: var(--secondary-color);
        color: var(--secondary-color);
    }

        .news-item .btn-outline-primary:hover {
            background-color: var(--secondary-color);
            color: white;
        }

    .news-item .card-footer {
        background-color: transparent;
        border-top: none;
        padding: 15px;
    }

        .news-item .card-footer .text-muted {
            font-size: 0.8rem;
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-item {
        margin-bottom: 20px;
    }

        .news-item .card-img-top {
            height: 200px;
        }
}




/* Page Header */
.page-header {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('/api/placeholder/1920/1080');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
}

/* Organizational Structure */
.org-chart {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.chart-level {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.chart-item {
    text-align: center;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
}

    .chart-item.director {
        background-color: #e9ecef;
    }

    .chart-item h4 {
        color: var(--primary-color);
        margin-bottom: 10px;
    }

    .chart-item ul {
        list-style-type: none;
        padding: 0;
    }

        .chart-item ul li {
            padding: 5px 0;
            border-bottom: 1px solid #eee;
        }

            .chart-item ul li:last-child {
                border-bottom: none;
            }

/* Leadership Team */
.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .team-member:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    }

    .team-member .card-img-top {
        height: 350px;
        object-fit: cover;
    }

/* Achievements */
.achievement-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .achievement-box:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    }

    .achievement-box i {
        color: var(--secondary-color);
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }

    .team-member .card-img-top {
        height: 300px;
    }
}




/* Research Areas */
.research-area {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

    .research-area:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    }

    .research-area i {
        color: var(--secondary-color);
        margin-bottom: 15px;
    }

    .research-area .card-title {
        color: var(--primary-color);
        margin-bottom: 15px;
    }

/* Project Cards */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

    .project-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    }

    .project-card .card-img-top {
        height: 250px;
        object-fit: cover;
    }

    .project-card .card-title {
        color: var(--primary-color);
        margin-bottom: 15px;
    }

.project-details .badge {
    margin-right: 10px;
}

/* Publication Cards */
.publication-card {
    background-color: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

    .publication-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    }

    .publication-card .card-title {
        color: var(--primary-color);
        margin-bottom: 15px;
    }

    .publication-card .btn-outline-primary {
        margin-top: 15px;
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .project-card .card-img-top {
        height: 200px;
    }
}



/* Funding Opportunities Page Styles */

.page-header {
    background: linear-gradient(rgba(52, 152, 219, 0.9), rgba(52, 152, 219, 0.9)), url('/api/placeholder/1920/1080');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
}

.funding-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .funding-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    }

    .funding-card i {
        margin-bottom: 20px;
        color: var(--secondary-color);
    }

    .funding-card .card-title {
        color: var(--primary-color);
        margin-bottom: 15px;
    }

    .funding-card ul {
        margin-bottom: 15px;
    }

        .funding-card ul li {
            margin-bottom: 5px;
            position: relative;
            padding-left: 15px;
        }

            .funding-card ul li::before {
                content: '•';
                color: var(--secondary-color);
                font-weight: bold;
                display: inline-block;
                width: 1em;
                margin-left: -1em;
            }

.process-step {
    background-color: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

    .process-step:hover {
        transform: translateY(-10px);
    }

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
    font-size: 1.5rem;
}

.process-step h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header {
        padding: 80px 0;
    }

    .funding-card, .process-step {
        margin-bottom: 20px;
    }
}


/* Resources Page Styles */

.resource-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .resource-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    }

    .resource-card i {
        margin-bottom: 20px;
    }

    .resource-card .card-title {
        color: var(--primary-color);
        margin-bottom: 15px;
    }

    .resource-card ul li {
        margin-bottom: 5px;
        position: relative;
        padding-left: 15px;
    }

        .resource-card ul li::before {
            content: '•';
            color: var(--secondary-color);
            font-weight: bold;
            display: inline-block;
            width: 1em;
            margin-left: -1em;
        }

.document-item {
    transition: transform 0.3s ease;
}

    .document-item:hover {
        transform: translateY(-5px);
    }

    .document-item .card-footer {
        background-color: transparent;
        border-top: none;
    }

.workshop-item {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

    .workshop-item:hover {
        transform: translateY(-10px);
    }

    .workshop-item .card-title {
        color: var(--primary-color);
        margin-bottom: 15px;
    }

    .workshop-item .workshop-details {
        margin-top: 15px;
    }

    .workshop-item .card-footer {
        background-color: transparent;
        border-top: none;
        padding: 15px;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .resource-card,
    .document-item,
    .workshop-item {
        margin-bottom: 20px;
    }
}



/* Events Page Styles */

/* Event Cards */
.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

    .event-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    }

    .event-card .card-img-top {
        height: 250px;
        object-fit: cover;
    }

    .event-card .card-title {
        color: var(--primary-color);
        font-weight: bold;
        margin-bottom: 15px;
    }

    .event-card .card-description {
        color: var(--text-color);
        opacity: 0.8;
    }

/* Past Events Table */
#past-events .table {
    background-color: white;
}

    #past-events .table thead {
        background-color: var(--secondary-color);
        color: white;
    }

#past-events .table-hover tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Newsletter Section */
#event-newsletter {
    background-color: var(--primary-color) !important;
}

    #event-newsletter .btn-light {
        background-color: white;
        color: var(--primary-color);
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .event-card {
        margin-bottom: 20px;
    }

        .event-card .card-img-top {
            height: 200px;
        }
}



/* News Page Styles */

.news-list .list-group-item {
    transition: background-color 0.3s ease;
}

    .news-list .list-group-item:hover {
        background-color: rgba(52, 152, 219, 0.1);
    }

.news-details .card-img-top {
    max-height: 400px;
    object-fit: cover;
}

.news-details .card-title {
    color: var(--primary-color);
    font-weight: bold;
}

.news-details .card-text {
    line-height: 1.6;
}

@media (max-width: 768px) {
    .news-list,
    .news-details {
        margin-bottom: 20px;
    }
}



/* Contact Page Styles */

#contact-section {
    background-color: #f8f9fa;
}

.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-block {
    margin-bottom: 20px;
}

    .contact-block h5 {
        color: var(--primary-color);
        margin-bottom: 10px;
    }

    .contact-block i {
        margin-right: 10px;
        color: var(--secondary-color);
    }

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

    .contact-form h2 {
        color: var(--primary-color);
    }

.form-label {
    font-weight: 600;
}

.form-control, .form-select {
    border-color: #ced4da;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    }

#location-map .map-placeholder {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-info, .contact-form {
        margin-bottom: 30px;
    }
}




/* =========================================================
   CORD NAVBAR LINK FIX
   ========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
}

    .navbar .navbar-nav {
        position: relative;
        z-index: 100000;
    }

    .navbar .nav-item {
        position: relative;
        z-index: 100001;
    }

    .navbar .nav-link {
        position: relative;
        z-index: 100002;
        display: block;
        cursor: pointer;
        pointer-events: auto !important;
        color: #333 !important;
        text-decoration: none;
    }

        .navbar .nav-link:hover {
            color: #003366 !important;
        }