/* --- Root Variables for Theming --- */
:root {
    --background-color: #F8F9FA;
    --text-color: #212529;
    --primary-color: #28a745;
    --card-bg-color: #FFFFFF;
    --font-family: 'Poppins', sans-serif;

    /* Added SwiperJS theme colors */
    --swiper-navigation-color: var(--primary-color);
    --swiper-pagination-color: var(--primary-color);
}

body.dark-mode {
    --background-color: #12181b;
    --text-color: #EAEAEA;
    --card-bg-color: #1f292e;
}

/* --- General Styles --- */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--card-bg-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul { list-style: none; display: flex; gap: 2rem; }
nav a { text-decoration: none; color: var(--text-color); font-weight: 400; }

/* --- Logo Styles --- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s;
}
.logo img {
    max-height: 40px;
    width: auto;
}
.logo .logo-dark-theme { display: none; }
.logo .logo-light-theme { display: block; }
body.dark-mode .logo .logo-dark-theme { display: block; }
body.dark-mode .logo .logo-light-theme { display: none; }


/* --- Hero Section --- */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; max-width: 600px; }
.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    display: inline-block;
    transition: transform 0.2s;
}
.cta-button:hover { transform: translateY(-3px); }


/* --- Image Slider Styles --- */
.slider-section {
    padding-top: 2rem; /* Reduced top padding to bring it closer to hero */
    padding-bottom: 4rem;
}
.swiper {
    width: 90%;
    max-width: 1200px;
    height: 500px;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --- Content & Service Cards --- */
.content-section { padding: 4rem 5%; }
.container { max-width: 1200px; margin: auto; text-align: center; }
.service-card {
    background: var(--card-bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 1rem;
    display: inline-block;
    width: 25%;
    transition: all 0.3s ease;
}
.service-card:hover { transform: translateY(-10px); }

/* --- Scroll Animation --- */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- Theme Toggle Switch --- */
.theme-switch-wrapper { display: flex; align-items: center; }
.theme-switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }


/* --- Footer Styles --- */
footer {
    background-color: var(--card-bg-color);
    padding: 3rem 5%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 4rem;
}
body.dark-mode footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}
.footer-about, .footer-links, .footer-social {
    flex: 1;
}
.footer-about .logo {
    margin-bottom: 1rem;
}
.copyright {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}
.footer-links h4, .footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    text-decoration: none;
    color: #6c757d;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--primary-color);
}
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.05);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    margin-right: 0.5rem;
    transition: background-color 0.2s;
}
.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}
body.dark-mode .social-icons a {
    background-color: rgba(255,255,255,0.1);
}
footer .logo span {
    color: #000000; 
}
body.dark-mode footer .logo span {
    color: #FFFFFF;
}

/* --- About Page Specific Styles --- */

.page-header {
    text-align: center;
    padding: 4rem 5%;
    background-color: var(--card-bg-color);
}

.page-header h1 {
    font-size: 3rem;
    margin: 0;
}

.about-content {
    padding: 4rem 5%;
}

.about-content h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-content p {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    line-height: 1.8;
    text-align: center;
}

.section-divider {
    border: 0;
    height: 1px;
    background: rgba(0,0,0,0.1);
    max-width: 200px;
    margin: 3rem auto;
}

body.dark-mode .section-divider {
    background: rgba(255,255,255,0.1);
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap; /* Allows cards to stack on smaller screens */
}

.profile-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 2rem;
    text-align: center;
    flex: 1;
    max-width: 400px;
}

.profile-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--background-color);
}

.profile-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.profile-card .title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.profile-card p {
    text-align: center;
    line-height: 1.6;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 2rem auto 0 auto;
}

.value-card {
    background-color: rgba(0,0,0,0.02);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

body.dark-mode .value-card {
    background-color: rgba(255,255,255,0.05);
}

.value-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.value-card p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Services Page Specific Styles --- */

.services-content .container {
    max-width: 1100px;
}

.service-item {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

/* Reverses the order for the alternating layout */
.service-item.reverse {
    flex-direction: row-reverse;
}

.service-image, .service-text {
    flex: 1; /* Each takes up 50% of the space */
}

.service-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-text h2 {
    font-size: 2rem;
    margin-top: 0;
}

.service-text p {
    line-height: 1.8;
}

.service-text ul {
    list-style: none;
    padding-left: 0;
}

.service-text li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

/* Creates a custom checkmark bullet point */
.service-text li::before {
    content: '✔';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.cta-section {
    background-color: var(--card-bg-color);
    padding: 4rem 5%;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-top: 0;
}

/* --- Contact Page Specific Styles --- */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Makes the form column wider */
    gap: 3rem;
    align-items: flex-start;
}

.contact-details h3, .contact-form h3 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.contact-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-details li {
    display: flex;
    align-items: flex-start; /* Aligns icon and text to the top */
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-icon {
    margin-right: 1rem;
    margin-top: 0.2rem; /* Fine-tunes vertical alignment of the icon */
    font-size: 1.2rem;
}

.contact-info {
    display: grid;
    /* This creates two columns: one for the label and one for the value */
    grid-template-columns: 155px auto; 
    flex: 1; /* Allows the info block to take up remaining space */
}

.contact-info strong {
    font-weight: 600; /* Ensures the label is bold */
}

.contact-details li a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    box-sizing: border-box; /* Important for padding and width */
}

.form-group textarea {
    resize: vertical;
}

/* Map Styles */
.map-container {
    margin-top: 4rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

body.dark-mode .map-container {
    border-color: rgba(255,255,255,0.1);
}
/* --- Navigation Dropdown Styles --- */

/* This is the container for the dropdown ('Services' list item) */
.dropdown {
    position: relative; /* This is essential for positioning the dropdown menu */
}

/* The dropdown menu itself (hidden by default) */
.dropdown-menu {
    position: absolute; /* Positioned relative to the .dropdown parent */
    top: 120%; /* Position it just below the nav item with a small gap */
    left: 50%; /* Center it horizontally */
    transform: translateX(-50%); /* Fine-tune the centering */
    
    background-color: var(--card-bg-color);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 1000; /* Ensures it appears on top of other content */
    
    /* Animation properties */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, top 0.2s ease;
}

/* Links inside the dropdown */
.dropdown-menu li a {
    padding: 0.75rem 1.5rem;
    display: block; /* Makes the entire area clickable */
    white-space: nowrap; /* Prevents text from wrapping */
    transition: background-color 0.2s, color 0.2s;
}

/* The hover effect for items within the dropdown */
.dropdown-menu li a:hover {
    background-color: var(--primary-color);
    color: white; /* Ensures text is readable on the green background */
}

/* This is the magic: Show the dropdown menu on hover */
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    top: 100%;
}
/* --- Article Page Styles --- */

.article-container {
    max-width: 800px; /* Optimal width for reading text */
    margin: 4rem auto; /* Centers the article and adds space */
    padding: 0 5%;
}

.article-header-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}
/* --- Sustainability Model Page Styles --- */

.model-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.model-content ol {
    list-style: none; /* Removes the default 1. 2. 3. numbers */
    counter-reset: model-counter; /* Creates our own counter */
    padding-left: 0;
}

.model-content ol > li {
    counter-increment: model-counter; /* Adds 1 to the counter for each item */
    margin-bottom: 2.5rem; /* Creates space between the main sections */
}

/* This adds our custom styled number before each main point */
.model-content ol > li::before {
    content: counter(model-counter) ". "; /* Displays the counter value */
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color); /* Uses your theme's green color */
}

.model-content p {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    padding-left: 2.2rem; /* Indents the descriptive paragraph */
}

.model-content ul {
    list-style-type: '○ '; /* Sets the bullet to an open circle, like your image */
    padding-left: 4rem; /* Indents the bullet points */
}

.model-content ul li {
    padding-left: 0.5rem;
    margin-bottom: 0.75rem; /* Adds space between each SDG item */
}
/* --- Articles Listing Page Styles --- */

.articles-grid {
    display: grid;
    /* Creates a responsive grid that shows 1, 2, or 3 columns */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden; /* Ensures the image corners are rounded */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes the 'Read More' link to the bottom */
    text-align: left;
}

.news-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0 0 0.5rem 0;
}

.news-content h4 {
    font-size: 1.3rem;
    margin: 0 0 0.75rem 0;
}

.news-content p {
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    flex-grow: 1;
}

.news-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start; /* Aligns the link to the left */
}

.news-content a i {
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.news-content a:hover i {
    transform: translateX(5px);
}
/* --- "Coming Soon" Page Styles --- */

.coming-soon-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh; /* Ensures it takes up most of the screen */
    padding: 4rem 5%;
    color: white; /* Text is white to stand out on the gradient */
    
    /* The animated background gradient */
    background: linear-gradient(-45deg, #23a6d5, #23d5ab, #1a7e67, #28a745);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
}

/* Switches text color for light mode for readability */
body:not(.dark-mode) .coming-soon-section {
    color: var(--text-color);
}

.coming-soon-content h1 {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.coming-soon-content p {
    font-size: 1.2rem;
    max-width: 600px;
    opacity: 0.9;
}

/* Keyframe animation for the background gradient */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}