/* CSS Variables for colour palette based off the DNT logo */
:root {
    --primary: #b400a4;      /* vibrant purple/magenta */
    --secondary: #f4c415;    /* warm yellow for accents */
    --light: #f8f3fb;        /* very light purple background */
    --dark: #2c2c2c;         /* dark text colour */
}

/* Global styles */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 55px;
    width: auto;
}

.site-name {
    margin-left: 10px;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

/* Ensure the nav element forms a positioning context so the dropdown list is anchored correctly */
nav {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.2s ease;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    padding: 130px 0 90px;
    text-align: center;
    margin-top: 70px; /* space for fixed header */
}

.hero h1 {
    font-size: 2.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #ffe57d;
}

/* Sections */
.section {
    padding: 80px 0;
}

.alt-section {
    background: var(--light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary);
}

/* Vision & mission layout */
.vision-mission {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.vision, .mission {
    flex: 1;
    min-width: 280px;
}

.vision ul {
    margin-top: 10px;
    padding-left: 20px;
}

.vision ul li {
    margin-bottom: 0.5rem;
}

/* Values grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.value-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

.value-item h4 {
    margin: 0.5rem 0;
    font-weight: 600;
    color: var(--primary);
}

.value-item p {
    font-size: 0.95rem;
    color: #555555;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.service-item {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.service-item h4 {
    margin: 0.5rem 0;
    font-weight: 600;
    color: var(--primary);
}

.service-item p {
    font-size: 0.95rem;
    color: #555555;
}

/* News section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.news-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.news-item h3 {
    margin-top: 0;
    color: var(--primary);
    font-weight: 600;
}

.news-meta {
    font-size: 0.85rem;
    color: #777777;
    margin-bottom: 0.7rem;
}

.news-link {
    display: inline-block;
    margin-top: 0.7rem;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.news-link:hover {
    text-decoration: underline;
}

/* Contact section */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-details {
    flex: 1;
    min-width: 280px;
}

.contact-details p {
    margin-bottom: 1rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #555555;
}

.contact-list li i {
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-list a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-list a:hover {
    color: var(--primary);
}

.contact-form {
    flex: 1;
    min-width: 280px;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form button {
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    background: var(--secondary);
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: #ffe57d;
}

/* Footer */
footer {
    background: var(--dark);
    color: #ffffff;
    padding: 20px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-nav {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: text-decoration 0.2s;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* Service icon styling: images replacing the previous font-awesome icons */
.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 15px;
    /* Add a subtle border and background to complement brand colours */
    padding: 6px;
    background: var(--light);
    border: 2px solid var(--primary);
}

/* Value icon styling: images replacing the previous Font Awesome icons in the core values section */
.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 15px;
    padding: 6px;
    background: var(--light);
    border: 2px solid var(--primary);
}

/* Mobile menu toggle button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark);
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Keep brand and toggle in a row and distribute space */
    .nav-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    /* Show the hamburger button on small screens */
    .menu-toggle {
        display: block;
    }
    /* Convert the navigation list into a dropdown panel */
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        gap: 15px;
        margin: 0;
        padding: 10px 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 999;
    }
    nav ul.active {
        display: flex;
    }
    .hero h1 {
        font-size: 2.1rem;
    }
    .vision-mission, .contact-content {
        flex-direction: column;
    }
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
}