/* Main Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-color: #009900;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    /* Separate logo and nav */
    align-items: center;
    /* Vertically center items */
    padding: 0 20px;
    /* Add some padding to the sides */
    font-family: Arial, sans-serif;
}

.logo-section {
    display: flex;
    align-items: center;
    padding-left: 0;
    height: 100%;
}

.bdal-logo {
    height: 80px;
    margin-right: 5px;
}

.nav-container {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    /* Space between logo, links and login */
    width: 100%;
    max-width: 1000px;
    /* Match other sections */
    padding: 2rem 2rem;
    /* Match other sections' padding */
}


.nav-links {
    display: flex;
    height: 100%;
    margin-left: auto;
    /* Push links to the center */
    margin-right: 0px;
    /* Space between links and login button */
}


.nav-links a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: bold;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: #C41230;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    color: white;
    font-size: 15px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login {
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
}

.login-btn:hover {
    background-color: #C41230;
}

/* Root Variables and Global Styles */
:root {
    --primary-color: #009900;
    --text-light: #ffffff;
    --card-gap: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 100px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 400px;
    background: url('/assets/images/bck.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    font-weight: bold;
    /* font-size: 30px; */
    padding: 0px;
    display: flex;
    justify-content: center;
    margin-top: -10;
    position: relative;
}


.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.hero-title {

    font-size: 2rem;
    color: var(--text-light);
    background-color: var(--primary-color);
    padding: 1rem;
    width: 100%;
    text-align: left;
    background-color: rgba(0, 153, 0, 0.9);
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.4);
}

.hero-text {
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.6;
    margin-top: 1rem;
    text-align: left;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background-color: rgba(0, 0, 0, 0.7);


}

/*hero section 2 */
.hero-text-container {
    max-width: 600px;
}

.hero-text-editor {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.hero-save-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.hero-save-btn:hover {
    background: #007700;
}

/* Projects Section */
.projects {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    color: white;
    font-size: 15px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-all-btn:hover {
    background-color: #C41230;
}

.next-icon {
    margin-left: 8px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0 auto;
}

/* .project-card {
background: #fff;
border: 1px solid #ddd;
border-radius: 8px;
overflow: hidden;
transition: transform 0.3s ease;
height: 100%;
} */

.project-card:hover {
    transform: translateY(-5px);
}

.card-image {

    display: grid;
    /* Enable Grid */
    place-items: center;
    /* Center both vertically and horizontally */
    text-align: start;
    /* Ensure text is centered */

    width: 200px !important;
    padding-left: 10px;
    /* Increased width */
    padding-top: 100px;
    padding-right: 10px;
    padding-bottom: 50px;
    margin-left: 2px;
    height: 300px;
    /* padding-right: 25% ;   */
    /* position: relative; */
    background-color: rgb(163, 233, 148);
    border-radius: 10px;
    /* Added border radius */



}

/* .card-image img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 60%;
max-height: 60%;
} */

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #000000;
}

.card-description {
    font-size: 0.9rem;
    color: #666;
}

/* News & Events Section */
.news-events-section {
    background: #000000;
    color: #ffffff;
    padding: 4rem 0;
    margin-top: 3rem;
}

.news-events-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 4rem;
    padding: 0 2rem;
}

.featured-event {
    padding-right: 2rem;
    border-right: 1px solid #333;
}

.featured-event h2 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.featured-image {
    width: 100%;
    margin-bottom: 20px;
}

.featured-event h3 {
    font-size: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.featured-event .date {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.featured-event p {
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: #C41230;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
}

.news-events-lists {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-section,
.events-section {
    background: #1a1a1a;
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.section-header h2 {
    color: #ffffff;
    font-size: 16px;
    text-transform: uppercase;
}

.news-list,
.events-list {
    list-style: none;
}

.news-item,
.event-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.item-date {
    min-width: 40px;
    text-align: center;
}

.date-day {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.date-month {
    font-size: 12px;
    color: #999;
}

.item-content h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.item-content h3 a {
    color: #ffffff;
    text-decoration: none;
}

.item-content h3 a:hover {
    color: #C41230;
}

.item-content p {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
}

/* Footer */
.footer {
    background: #009900;
    color: #fff;
    padding: 1rem 0;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.footer-text {
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #ffffff;
    text-decoration: none;
    width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    border-radius: 3px;
}

.social-links a:hover {
    background: #C41230;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-events-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-event {
        padding-right: 0;
        border-right: none;
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .logo-section {
        padding-left: 0px;
        display: flex;
        justify-content: flex-start;
        /* Aligns the logo to the start */
        align-items: center;
        /* Vertically centers the logo */
        padding-left: 0;
        /* Ensures no left padding */
        margin-left: 0;
        /* Ensures no left margin */

    }
}

/*arrow */
.nav-arrow {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    line-height: 32px;
    text-decoration: none;
    color: #333;
    margin: 0 4px;
    cursor: pointer;
}

.nav-arrow:hover {
    background-color: #C41230;
}

/* Optional: if you want to add a subtle shadow like CMU's design */
.nav-arrow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns */
    gap: 20px;
    /* Space between grid items */
    padding: 20px;
}

.project-card {
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    /* Add a hover effect */
}

.project-card img {
    max-width: 100%;
    /* Ensures the image doesn't exceed the card's width */
    height: auto;
    /* Maintains the image's aspect ratio */
    border-radius: 8px;
    /* Matches the card's border radius */
    display: block;
    /* Ensures the image behaves as a block element */
    margin: 0 auto;
    /* Centers the image horizontally */
}

.card-image {
    padding-top: 10px;
    /* Adjust this value to reduce the height at the top */
    overflow: hidden;
    /* Ensures the image doesn't overflow */
}

.card-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

h3 {
    margin-bottom: 10px;
    /* Add some space between MLL and the link */
    word-wrap: break-word;
    /* Prevent long words from overflowing */
}

a {
    word-wrap: break-word;
    /* Prevent long URLs from overflowing */
    color: rgb(46, 83, 218);
    /* Example link color */
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .projects-container {
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns for medium screens */
    }
}

@media (max-width: 992px) {
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns for tablets */
    }
}

@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
        /* 1 column for mobile */
    }
}

/* -- PAgination --- */
.pagination-container {
    padding: 20px 0; /* Adds space above and below the pagination */
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Spacing between numbers */
    padding: 10px;
}

.pagination li {
    list-style: none;
    display: inline-block;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    text-decoration: none;
    color: black;
    border-radius: 4px;
}

.pagination .active span {
    font-weight: bold;
    background: #007bff;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
}
