/* Base Styles */
:root {
    --primary-color: #000080;
    --secondary-color: #808080;
    --text-color: #333;
    --light-bg: #f0f0f0;
    --white: #ffffff;
    --light-grey: #e6e6e6;
    --dark-navy: #000066;
    --medium-grey: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}


footer {
    background: var(--light-grey);
    padding: 2rem 0;
    color: var(--text-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px; /* Ensures sections don't get too narrow */
    margin: 1rem;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid var(--light-grey);
    margin-top: 2rem;
    font-size: 0.9rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    background: var(--white);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links li a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--secondary-color);
}

.nav-links li a.active {
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 4px;
}

/* Hero Section */
.hero {
    height: 85vh;
    margin-top: 74px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: url('../images/lundi51.jpg') no-repeat center center;
    background-size: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 128, 0.85) 0%,
        rgba(0, 0, 128, 0.7) 50%,
        rgba(128, 128, 128, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-content .sub-text {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--white);
}

.section-grey {
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* Welcome Message */
.welcome-message {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(to right, var(--white) 0%, var(--light-bg) 100%);
}

.welcome-message::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: var(--primary-color);
    border-radius: 0 3px 3px 0;
}

.welcome-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.welcome-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.welcome-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.welcome-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

.welcome-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.welcome-text {
    padding-right: 2rem;
}

.welcome-text .lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.welcome-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.welcome-highlight {
    display: flex;
    justify-content: center;
    align-items: center;
}

.motto-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid var(--primary-color);
    width: 100%;
}

.motto-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.motto-box .motto {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.motto-box .motto-subtitle {
    color: var(--secondary-color);
    font-size: 1rem;
    display: block;
}

/* Quick Links */
.quick-links {
    padding: 5rem 0;
    background: var(--light-bg);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.link-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.link-card:hover {
    transform: translateY(-5px);
}

.link-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.link-card p {
    margin-bottom: 1.5rem;
}

/* News Section */
.latest-news {
    padding: 5rem 0;
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--light-grey);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.news-card .date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: var(--dark-navy);
}

.cta-button.secondary {
    background: var(--secondary-color);
}

.cta-button.secondary:hover {
    background: var(--medium-grey);
}

/* Portal Dropdown */
.portal-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.nav-links li:hover .portal-dropdown {
    opacity: 1;
    visibility: visible;
}

.portal-dropdown a {
    padding: 0.8rem 1.2rem;
    display: block;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s ease;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 0.8rem 2%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--white);
        padding: 1rem 0;
        border-top: 3px solid var(--primary-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        padding: 0.8rem 1.5rem;
        white-space: normal;
    }

    .navbar.active .nav-links {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.4rem;
    }

    .hero-content .sub-text {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        max-width: 250px;
        margin: 2rem auto 0;
    }

    .welcome-message {
        padding: 3rem 0;
    }

    .welcome-message h2 {
        font-size: 2rem;
    }

    .welcome-message p {
        font-size: 1rem;
    }

    .quick-links .container {
        padding: 0 1rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

  

    .portal-dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0.5rem;
        width: 100%;
        background: var(--white);
    }

    .portal-dropdown a {
        padding: 0.8rem;
        border-radius: 4px;
        margin-bottom: 0.3rem;
    }

    .portal-dropdown a:last-child {
        margin-bottom: 0;
    }

    .portal-trigger i {
        display: none;
    }
}



/* Key Features Section */
.key-features {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #fff, #f8f9fa);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}
