/* ==========================================================================
   DE-FLORIE ORGANISATION - GLOBAL STYLESHEET
   ========================================================================== */

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables / Brand Palette --- */
:root {
    --primary-color: #d97706;      /* Amber / Accent Highlight */
    --primary-hover: #b45309;
    --secondary-color: #7d522e;    /* Earthy Brown / Brand Secondary */
    --accent-color: #2e7d32;       /* Conservation Green */
    --dark-text: #1f2937;
    --light-bg: #f9fafb;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* --- Global Reset & Base Styles --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0 60px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-text);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style-position: inside;
}

/* --- Student Badge Banner --- */
.student-badge {
    background: #1e293b;
    color: #f8fafc;
    text-align: center;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Sticky Navigation & Header --- */
header {
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo-area h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    color: var(--secondary-color);
}

.logo-area img {
    border-radius: 50%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 10px;
}

.nav-links li {
    transition: var(--transition);
}

.nav-links a {
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(217, 119, 6, 0.08);
}

/* Active Menu Item Styling */
.nav-links li[style*="background-color"] {
    background-color: var(--secondary-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0 !important;
}

.nav-links li[style*="background-color"] a {
    color: #ffffff !important;
}

.nav-links li[style*="background-color"] a span {
    color: #ffffff !important;
}

/* --- Hero Banner Section --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
                url("advantages-of-environmental-sustainability (1).jpg") center/cover no-repeat;
    text-align: center;
    color: #ffffff;
    padding: 100px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 2.75rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.hero p {
    max-width: 720px;
    margin: 0 auto 28px;
    font-size: 1.1rem;
    color: #e5e7eb;
}

/* --- Page & Section Titles --- */
section {
    margin-bottom: 50px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #5c3a1e;
    box-shadow: var(--shadow-md);
}

/* --- Layouts & Grids --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.split-layout {
    display: flex;
    gap: 35px;
    align-items: flex-start;
}

.main-content {
    flex: 2;
    min-width: 0;
}

aside {
    flex: 1;
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

aside h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* --- Cards --- */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card img,
.card-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card h3 img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.card-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h4 {
    font-size: 1.15rem;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.card-content p {
    color: #4b5563;
    font-size: 0.95rem;
}

/* --- Data Tables --- */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--secondary-color);
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 14px 18px;
}

.data-table td {
    padding: 14px 18px;
    border-top: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: #374151;
}

.data-table tr:nth-child(even) td {
    background-color: #f8fafc;
}

/* --- Forms & Inputs --- */
.form-container {
    max-width: 680px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #374151;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--dark-text);
    background-color: #ffffff;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(125, 82, 46, 0.15);
}

textarea.form-control {
    resize: vertical;
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 240px;
    background-color: #e5e7eb;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Footer --- */
footer {
    background-color: #111827;
    color: #9ca3af;
    margin-top: auto;
}

.footer-bottom {
    background-color: #030712;
    text-align: center;
    padding: 20px;
    padding-bottom:;
    font-size: 0.9rem;
    color: #6b7280;
    border-top: 1px solid #1f2937;
}

/* --- Responsive Media Queries --- */
@media (max-width: 900px) {
    .split-layout {
        flex-direction: column;
    }
    
    aside {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.65rem;
    }
}