
/* CAMPUS CONNECT - MAIN DESIGN */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6fa;
    color: #222;
    line-height: 1.6;
}

/* HEADER */

header {
    background: #071b3a;
    color: white;
    padding: 18px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 23px;
    font-weight: bold;
}

.logo span {
    color: #f4b942;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: #f4b942;
}

#menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
}

/* HERO */

.hero {
    background: linear-gradient(135deg, #071b3a, #164b83);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero p {
    max-width: 650px;
    margin: 0 auto 25px;
    font-size: 17px;
}

.btn {
    display: inline-block;
    background: #f4b942;
    color: #071b3a;
    padding: 13px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

/* GENERAL SECTIONS */

section {
    padding: 55px 7%;
}

section h2 {
    color: #071b3a;
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
}

/* SEARCH */

.search-section {
    text-align: center;
    background: white;
}

.search-section input {
    width: 100%;
    max-width: 550px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

/* QUICK ACCESS */

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
    border-top: 4px solid #f4b942;
}

.card h3 {
    color: #164b83;
    margin-bottom: 10px;
}

/* NEWS */

.news-section {
    background: white;
}

.notice {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.filters {
    text-align: center;
    margin-bottom: 25px;
}

.filters button,
#contribution-form button {
    background: #071b3a;
    color: white;
    padding: 11px 20px;
    border: none;
    border-radius: 5px;
    margin: 5px;
    cursor: pointer;
}

.filters button:hover,
#contribution-form button:hover {
    background: #164b83;
}

#news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    background: #f4f6fa;
    padding: 22px;
    border-radius: 8px;
    border-left: 4px solid #f4b942;
}

.news-card h3 {
    color: #164b83;
    margin-bottom: 10px;
}

/* STUDENT LIFE */

#student-life {
    text-align: center;
}

#student-life p {
    max-width: 650px;
    margin: auto;
}

/* CONTRIBUTION */

.contribute-section {
    background: #e9eef7;
    text-align: center;
}

#contribution-form {
    max-width: 550px;
    margin: auto;
}

#contribution-form input,
#contribution-form textarea {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
}

#contribution-form textarea {
    min-height: 130px;
    resize: vertical;
}

/* FOOTER */

footer {
    background: #071b3a;
    color: white;
    text-align: center;
    padding: 35px 20px;
}

footer h3 {
    color: #f4b942;
    margin-bottom: 10px;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 768px) {

    header {
        padding: 15px 5%;
    }

    #menu-toggle {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 15px;
    }

    nav.active {
        display: flex;
    }

    .hero {
        padding: 75px 20px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    #news-container {
        grid-template-columns: 1fr;
    }
}

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

    section {
        padding: 40px 5%;
    }
}
