:root {
    --primary: #07404c;
    --accent: #2E7D32;
    --bg: #f8fafc;
    --text: #334155;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(7, 64, 76, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: #FAF5ED; /* Matches logo background exactly */
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.container.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 100px; 
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    background: url('../ncsitebuilder/gallery_gen/6be3e67905bf68ec6180f9b6a5b1c184_fit.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 140px 0;
    text-align: center;
}

/* Dark overlay for readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 64, 76, 0.75);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    max-width: 900px;
    margin: 0 auto 20px auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.4rem;
    font-weight: 600;
    opacity: 1;
    letter-spacing: 1px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 14px;
    margin-top: 30px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #1B5E20;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Partner Logos */
.partners {
    padding: 50px 0;
    background: var(--white);
    border-bottom: 1px solid #edf2f7;
}

.partner-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.partner-grid img {
    max-height: 55px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.4s;
}

.partner-grid img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

/* Sections */
section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* Feature Cards */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 45px 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f1f5f9;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(7, 64, 76, 0.12);
}

.card i {
    font-size: 45px;
    color: var(--accent);
    margin-bottom: 25px;
    display: block;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 850px;
    margin: 50px auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #eef2f7;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -58px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 5px solid var(--bg);
    z-index: 1;
    box-shadow: 0 0 0 4px #eef2f7;
}

.timeline-date {
    font-weight: 800;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-item h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* Horizontal Team Member Cards */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.member-row {
    background: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid #f1f5f9;
}

.member-row:hover {
    transform: translateX(10px);
    border-color: var(--accent);
}

.member-photo-small {
    width: 140px;
    height: 140px;
    border-radius: 50%; /* Circular photos */
    object-fit: cover;
    flex: 0 0 140px;
    border: 4px solid #f1f5f9;
}

.member-info-side {
    flex: 1;
    text-align: left;
}

.member-info-side h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.member-role {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}

.uni-logo-small {
    height: 35px;
    width: auto;
    margin-bottom: 20px;
}

/* News Section */
.news-item {
    background: var(--white);
    padding: 45px;
    border-radius: 15px;
    margin-bottom: 35px;
    box-shadow: var(--shadow);
    border-left: 6px solid var(--accent);
    transition: 0.3s;
}

.news-item:hover {
    transform: translateX(5px);
}

/* Footer */
footer {
    background: #ffffff;
    color: var(--text);
    padding: 60px 0;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.footer-logos {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-logos img {
    height: 50px;
    width: auto;
    opacity: 1;
}

/* Contact Form Modernization */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(7, 64, 76, 0.05);
    border: 1px solid #f1f5f9;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.form-group textarea {
    height: 160px;
    resize: vertical;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .hide-mobile {
        display: none !important;
    }
    
    .about-flex-container {
        flex-direction: column !important;
        position: relative;
        background: url('../ncsitebuilder/gallery_gen/aec10c69ce718847890f9388b1071b70_fit.jpg') no-repeat center center/cover;
        border-radius: 20px;
        overflow: hidden;
        margin-top: 20px;
    }

    .about-flex-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(7, 64, 76, 0.85); 
        z-index: 1;
    }

    .about-text {
        position: relative;
        z-index: 2;
        padding: 40px 25px;
        color: #ffffff !important;
    }

    .about-text h2, .about-text p {
        color: #ffffff !important;
    }
    
    .about-image-side {
        display: none !important;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Align exactly to the bottom of the header */
        left: 0;
        width: 100%;
        background: #fdfbf3; /* Match header color exactly */
        padding: 40px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        text-align: center;
        gap: 20px;
        border-top: 1px solid rgba(7, 64, 76, 0.05); /* Subtle separator */
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }

    .contact-container {
        padding: 30px 20px;
    }

    /* Mobile Team Layout - Stack back to vertical but keep small photos */
    .member-row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .member-info-side {
        text-align: center;
    }
}
