* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Figtree, sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Global image responsiveness */

/* Top Bar */
.top-bar {
    background: #c53030;
    color: white;
    padding: 12px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-bar-left a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left a:hover {
    text-decoration: underline;
}

.top-bar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-bar-right a {
    color: white;
    text-decoration: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-right a:hover {
    opacity: 0.8;
}

.language-flags {
    display: flex;
    gap: 10px;
}

.language-flags img {
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.social-icons {
    display: flex;
    gap: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 15px;
}

.social-icons a {
    color: #c53030;
    background: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: opacity 0.3s;
}

/* Header */
header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    position: relative;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    height: 50px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

nav a:hover {
    color: #000;
}

/* Hamburger Menu styles */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #333;
}

/* Banner (Generic Page Header) */
.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/imagen_mina_extenso.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 16px;
}

/* Hero (Home Page) */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/imagen_mina_extenso.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-text h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 16px;
    max-width: 500px;
    line-height: 1.8;
}

/* Contact Box (in Hero) */
.contact-box {
    background: #c53030;
    color: white;
    padding: 30px;
    border-radius: 8px;
    width: 350px;
    flex-shrink: 0;
}

.contact-box h3 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

.contact-box input,
.contact-box textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 4px;
    font-family: inherit;
}

.contact-box button {
    background: #f4a261;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.contact-box button:hover {
    background: #e39857;
}

/* About */
.about {
    padding: 80px 0;
    background: white;
}

.about .container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    color: #c53030;
    margin-bottom: 20px;
    font-weight: bold;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
    font-size: 15px;
}

.about-text strong {
    color: #333;
}

.about-image {
    flex-shrink: 0;
}

.about-image img {
    width: 350px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/* Values */
.values {
    background: linear-gradient(rgba(197, 48, 48, 0.85), rgba(197, 48, 48, 0.85)), url('/images/values-bg.jpg');
    background-size: cover;
    color: white;
    padding: 80px 0;
}

.values .container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.values-circles {
    display: flex;
    gap: 40px;
    flex-shrink: 0;
}

.values-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    overflow: hidden;
    flex-shrink: 0;
}

.values-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.values-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
}

.values-text p {
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 15px;
}

/* Supply */
.supply {
    background: #f5f5f5;
    padding: 30px 0;
    text-align: center;
    font-size: 16px;
    color: #666;
}

.supply strong {
    color: #c53030;
    font-weight: bold;
}

/* News */
.news,
.news-section {
    padding: 80px 0;
    background: white;
}

.news h2,
.news-section h2 {
    font-size: 36px;
    color: #333;
    /* or c53030 based on news page style? News page had c53030. Unifying to dark grey or red? Let's use red for headers if that's the theme. welcome had 333 (dark). news.blade had c53030 (red). I'll keep them as defined by classes or unify. Let's use theme color c53030 for uniformity. */
    color: #c53030;
    /* Unifying to brand red */
    margin-bottom: 50px;
    font-weight: bold;
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.news-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
}

.news-card h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.4;
}

.news-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Sales Page */
.sales-content {
    padding: 80px 0;
    background: white;
}

.sales-content h2 {
    font-size: 36px;
    color: #666;
    font-weight: 300;
    margin-bottom: 25px;
}

.sales-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.sales-section {
    margin-bottom: 60px;
}

/* Partnerships Page */
.partnerships-content {
    padding: 80px 0;
    background: white;
}

.partnerships-content h2 {
    font-size: 36px;
    color: #c53030;
    margin-bottom: 25px;
}

.partnerships-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: justify;
}

.sinochem-section img {
    width: 100%;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-section {
    background: #c53030;
    color: white;
    padding: 60px 0;
}

.contact-section .container {
    text-align: center;
}

.contact-section h3 {
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: bold;
}

.contact-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.contact-section-item p {
    margin-bottom: 10px;
}

.contact-section-item a {
    color: white;
    text-decoration: none;
}

.contact-section-item a:hover {
    text-decoration: underline;
}

.contact-section button {
    background: white;
    color: #c53030;
    border: none;
    padding: 14px 40px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

.contact-section button:hover {
    background: #f0f0f0;
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-section p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.footer-section a {
    display: block;
    color: #666;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-section a:hover {
    color: #c53030;
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* RESPONSIVE MEDIA QUERIES */

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    /* Hero adjustments */
    .hero .container {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
    }

    .hero-text p {
        margin: 0 auto;
    }

    .hero-text h1,
    .banner-content h1 {
        font-size: 36px;
    }

    .contact-box {
        width: 100%;
        max-width: 450px;
    }

    /* Values adjustments */
    .values .container {
        flex-direction: column-reverse;
        /* Images on bottom, text on top */
    }

    .values-circles {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    /* Top Bar */
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-bar-left,
    .top-bar-right {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    /* Header & Navigation (Hamburger) */
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    header nav {
        position: fixed;
        left: -100%;
        top: 140px;
        /* Approximate header height from top of page */
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 20px 0;
    }

    header nav.active {
        left: 0;
    }

    header nav a {
        padding: 15px 0;
        font-size: 18px;
        border-bottom: 1px solid #eee;
    }

    /* About */
    .about .container {
        flex-direction: column;
    }

    .about-image img {
        width: 100%;
        height: auto;
    }

    /* Values */
    .values-circles {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 100%;
        justify-items: center;
    }

    .values-circle {
        width: 120px;
        height: 120px;
    }

    /* Typography */
    .hero-text h1,
    .banner-content h1,
    .news h2,
    .about-text h2,
    .values-text h2,
    .sales-content h2,
    .partnerships-content h2 {
        font-size: 28px !important;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}