/* ==========================================================================
   Cheetah Chrome South Africa - High-End Corporate Style
   ========================================================================== */

:root {
    /* --- Color Palette (Anglo American Platinum Inspired) --- */
    --color-primary: #002b49;      /* Deep Blue */
    --color-primary-darker: #001f33;
    --color-secondary: #6c757d;    /* Medium Grey / Body Text */
    --color-accent: #FFA500;       /* Orange Accent */
    --color-accent-darker: #E59400; /* Darker Orange Accent */
    --color-background-light: #f8f9fa; /* Very Light Grey */
    --color-background-white: #FFFFFF;
    --color-text-dark: #212529;      /* Near Black */
    --color-text-light: #FFFFFF;
    --color-text-muted: #adb5bd;    /* Lighter grey for muted text */
    --color-border: #dee2e6;       /* Light border color */

    /* --- Typography --- */
    --font-family-base: 'Montserrat', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* --- Layout --- */
    --container-width: 1140px;
    --spacing-unit: 1rem; /* Approx 16px */
}

/* --- Base & Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Typography Hierarchy --- */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
}

h1 {
    font-size: calc(var(--font-size-base) * 2.5); /* 40px */
    font-weight: var(--font-weight-bold);
}

h2 {
    font-size: calc(var(--font-size-base) * 2); /* 32px */
    margin-bottom: var(--spacing-unit);
}

h3 {
    font-size: calc(var(--font-size-base) * 1.5); /* 24px */
}

h4 {
    font-size: calc(var(--font-size-base) * 1.25); /* 20px */
}

p {
    margin-top: 0;
    margin-bottom: var(--spacing-unit);
    color: var(--color-secondary); /* Use medium grey for body text */
    font-weight: var(--font-weight-normal);
}

a {
    color: var(--color-primary); /* Use primary blue for links */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--color-primary-darker); /* Darken primary on hover */
    text-decoration: none; /* Keep no underline */
}

ul {
    padding-left: calc(var(--spacing-unit) * 1.5);
    margin-bottom: var(--spacing-unit);
}

/* --- Layout: Container --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-unit);
    padding-right: var(--spacing-unit);
}

.text-center {
    text-align: center;
}

/* --- Header & Navigation (.navbar) --- */
.navbar {
    background-color: var(--color-background-white);
    padding: calc(var(--spacing-unit) * 1.5) 0; /* Generous padding */
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 5px rgba(0, 43, 73, 0.08); /* Subtle shadow using primary color base */
    transition: background-color 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    /* Remove text-specific styles if any remained */
    /* font-size: calc(var(--font-size-base) * 1.5); */ 
    /* font-weight: var(--font-weight-bold); */
    display: inline-block; /* Ensure anchor behaves like a block for image */
    line-height: 0; /* Prevent extra space below image */
}

.logo img {
    max-height: 80px; /* Increased height */
    width: auto; /* Maintain aspect ratio */
    vertical-align: middle; /* Align image nicely */
}

.logo:hover {
    color: var(--color-primary-darker);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-links li {
    margin-left: calc(var(--spacing-unit) * 2); /* Increased spacing */
}

.nav-links a {
    color: var(--color-text-dark);
    font-weight: var(--font-weight-semibold);
    padding-bottom: 5px; /* Reset if underline removed */
    position: relative;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Remove underline animation */
.nav-links a::after { 
   display: none; /* Hide the animated underline */
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary); /* Primary color on hover/active - simplified */
    font-weight: var(--font-weight-bold); /* Make active link bold */
}

/* --- Hero Section (#hero) --- */
.hero-section {
    background: linear-gradient(rgba(0, 43, 73, 0.7), rgba(0, 43, 73, 0.7)), url('images/hero-background.jpg') no-repeat center center/cover;
    color: var(--color-text-light);
    padding: calc(var(--spacing-unit) * 6) 0; /* 96px padding top/bottom */
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Ensure container within hero handles text alignment and max-width */
.hero-section .container {
    text-align: left; /* Left align text within the container */
    max-width: var(--container-width); /* Ensure it respects container width */
}

.hero-section h1 {
    color: var(--color-text-light);
    font-size: calc(var(--font-size-base) * 3); /* 48px */
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    max-width: 800px; /* Keep max-width for readability */
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .subtitle {
    font-size: calc(var(--font-size-base) * 1.125); /* 18px */
    color: rgba(255, 255, 255, 0.85);
    font-weight: var(--font-weight-normal);
    max-width: 700px; /* Keep max-width for readability */
    margin-bottom: calc(var(--spacing-unit) * 2); /* Keep bottom margin */
    margin-left: 0; /* Ensure left alignment */
    margin-right: 0;
}

/* --- Buttons (.btn) - Anglo Style --- */
.btn {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 0.65) calc(var(--spacing-unit) * 1.5); /* Adjusted padding: ~10px 24px */
    border: 1px solid var(--color-accent); /* Use accent color for border */
    border-radius: 4px; /* Standard border radius */
    cursor: pointer;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
    font-size: var(--font-size-base);
    line-height: 1.5;
    background-color: var(--color-accent); /* Use accent color for background */
    color: var(--color-text-light);
}

.btn:hover {
    background-color: var(--color-accent-darker); /* Use darker accent for hover */
    border-color: var(--color-accent-darker); /* Use darker accent for hover */
    color: var(--color-text-light);
    transform: none; /* Remove previous transform */
    box-shadow: none; /* Remove previous shadow */
}

/* Specific style for hero button if it needs to differ from general .btn */
/* For now, it will inherit the new orange style from .btn */
.btn-hero {
    /* Add any specific overrides for btn-hero if needed */
    /* For example, if you want a different text color for the hero button: */
    /* color: var(--color-primary); */
}

/* Ensure the news page read-more button also uses the accent color */
.news-item .read-more {
    display: inline-block;
    background-color: var(--color-accent); /* Gold color, adjust as needed */
    color: #fff;
    padding: 10px 20px;
    margin: 0 20px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: 1px solid var(--color-accent); /* Add border */
}

.news-item .read-more:hover {
    background-color: var(--color-accent-darker); /* Darker gold on hover */
    border-color: var(--color-accent-darker); /* Add border */
}

/* Ensure buttons in job/tender items also use accent color */
.job-item .btn, .tender-item .btn {
    /* Buttons inside cards/items now inherit base .btn style */
    font-size: calc(var(--font-size-base) * 0.9); /* Make them slightly smaller */
    padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit);
    /* Ensure they use the new accent color by overriding if necessary */
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text-light);
}
.job-item .btn:hover, .tender-item .btn:hover {
    background-color: var(--color-accent-darker);
    border-color: var(--color-accent-darker);
}

/* --- Content Sections & Card Style --- */
.content-section {
    padding: calc(var(--spacing-unit) * 4) 0; /* 64px padding */
}

/* Reusable Card Style */
.content-card {
    background-color: var(--color-background-white);
    padding: calc(var(--spacing-unit) * 2.5); /* 40px padding */
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 43, 73, 0.09);
    margin-bottom: var(--spacing-unit); /* Spacing below cards */
}

/* Applying card style to #about-short */
#about-short .container.content-card { 
    /* Remove background image and light text color */
    background: var(--color-background-white); /* Restore white background */
    color: inherit; /* Restore default text color inheritance */
    padding: calc(var(--spacing-unit) * 2.5); /* Restore original padding */
    text-align: left; /* Ensure text is left-aligned */
}

/* Restore text colors inside */
#about-short .content-card h2 {
    color: var(--color-primary);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

#about-short .content-card .intro-text {
    color: var(--color-secondary);
    font-size: calc(var(--font-size-base) * 1.05);
    max-width: none; /* Remove max-width if it conflicts with grid */
    margin-left: 0;
    margin-right: 0;
}

/* Grid layout for #about-short */
.about-short-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Text takes more space than image */
    gap: calc(var(--spacing-unit) * 2);
    align-items: center; /* Vertically align items */
}

/* Small image style */
.about-short-image-small {
    display: block;
    max-width: 100%; /* Max width relative to its container */
    height: auto;
    border-radius: 6px; /* Optional rounded corners */
    margin-left: auto; /* Push to the right within its column */
    margin-right: 0;
}

/* Ensure old image rule is still removed/disabled */
.about-short-image {
    display: none; 
}

/* --- About Page Specific Styles --- */

/* Main content wrapper for About page */
.main-content-wrapper {
    max-width: 1100px; /* Or match --container-width */
    margin-left: auto;
    margin-right: auto;
    padding-top: calc(var(--spacing-unit) * 2);
    padding-bottom: calc(var(--spacing-unit) * 2);
}

/* Story Section */
.about-story-section .container {
    /* Optional: Add subtle background/border to group story section */
    /* background-color: var(--color-background-white); */
    /* padding: var(--spacing-unit); */
    /* border-radius: 8px; */
}

.about-story-grid {
    display: grid;
    grid-template-columns: 3fr 2fr; /* Text takes more space */
    gap: calc(var(--spacing-unit) * 3);
    align-items: center;
}

.about-text h2 {
    margin-bottom: var(--spacing-unit);
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px; /* Match card radius */
    object-fit: cover; /* Ensure image covers area nicely */
    box-shadow: 0 4px 15px rgba(0, 43, 73, 0.1);
}

/* Mission & Vision Section */
.mission-vision-section {
    background-color: var(--color-background-white); /* White background to stand out */
    padding: calc(var(--spacing-unit) * 3) 0;
    margin-top: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.mission-vision-section h2 {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.mission-vision-section .large-text {
    font-size: calc(var(--font-size-base) * 1.15);
    line-height: 1.7;
    color: var(--color-secondary);
    max-width: 800px; /* Control line length */
    margin-left: auto;
    margin-right: auto;
}

/* Values Section */
.values-section h2 {
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}

.values-grid {
    display: grid;
    /* Aim for 2 or 3 columns depending on width */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: calc(var(--spacing-unit) * 1.5);
}

.value-card {
    /* Inherits .content-card styles (white bg, padding, shadow, radius) */
    text-align: center; /* Center content within value cards */
    margin-bottom: 0; /* Remove default bottom margin from content-card */
}

/* Optional Icon Styling */
/* .value-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-unit);
} */

.value-title {
    font-size: calc(var(--font-size-base) * 1.25); /* Larger title for values */
    color: var(--color-primary);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.value-card p {
    font-size: calc(var(--font-size-base) * 0.95);
    color: var(--color-secondary);
    margin-bottom: 0; /* No extra space at bottom of card */
}

/* Remove old list styles */
.values-list {
   display: none; 
}
/* Remove old image placeholder style */
.about-image-placeholder {
    display: none;
}

/* Specific styles for individual pages (like about.html, careers.html) */
.page-title-section {
    background-color: var(--color-background-light);
    padding: calc(var(--spacing-unit) * 2) 0; /* Smaller padding for page titles */
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.page-title-section h1 {
    font-size: calc(var(--font-size-base) * 2.2); /* Slightly smaller H1 for subpages */
    margin-bottom: 0;
}

.job-item, .tender-item {
    border: 1px solid var(--color-border); /* Use standard border */
    padding: calc(var(--spacing-unit) * 1.5);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    border-radius: 6px;
    background-color: var(--color-background-white); /* Explicitly set white background */
    box-shadow: 0 2px 5px rgba(0, 43, 73, 0.06); /* Slightly softer shadow */
    transition: box-shadow 0.3s ease;
}

.job-item:hover, .tender-item:hover {
     box-shadow: 0 4px 12px rgba(0, 43, 73, 0.09);
}

.job-item h4, .tender-item h4 {
    color: var(--color-primary);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.job-item p, .tender-item p {
    color: var(--color-secondary);
    margin-bottom: calc(var(--spacing-unit) * 0.75);
}
.job-item p strong, .tender-item p strong {
    color: var(--color-text-dark);
    font-weight: var(--font-weight-semibold);
}

.job-item .btn, .tender-item .btn {
    /* Buttons inside cards/items now inherit base .btn style */
    font-size: calc(var(--font-size-base) * 0.9); /* Make them slightly smaller */
    padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit); 
}
/* Remove specific hover for these buttons unless needed */
/* .job-item .btn:hover, .tender-item .btn:hover { ... } */


/* --- Footer (Anglo Style) --- */
.footer {
    background-color: var(--color-primary); /* Dark blue background */
    color: var(--color-text-muted); /* Muted light text */
    text-align: center;
    padding: calc(var(--spacing-unit) * 2.5) 0;
    margin-top: calc(var(--spacing-unit) * 3);
    font-size: calc(var(--font-size-base) * 0.875); /* 14px */
    border-top: none; /* Remove top border if background is dark */
}

.footer p {
    margin: 5px 0;
    color: var(--color-text-muted); /* Ensure text uses muted light color */
}

.footer a {
    color: var(--color-background-light); /* Lighter link color in footer */
}

.footer a:hover {
    color: var(--color-text-light); /* White on hover */
}

/* --- Responsive Design Adjustments --- */
@media (max-width: 992px) {
    :root {
        --font-size-base: 15px; /* Slightly smaller base on medium screens */
    }
    .hero-section { padding: calc(var(--spacing-unit) * 5) 0; }
    .hero-section h1 { font-size: calc(var(--font-size-base) * 2.8); }
    .hero-section .subtitle { font-size: calc(var(--font-size-base) * 1.1); }
}

/* 汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1040;
    position: relative;
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 7px;
}

.hamburger span:nth-child(3) {
    top: 14px;
}

/* 汉堡菜单动画 - 打开状态 */
.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    top: 7px;
    transform: rotate(135deg);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    top: 7px;
    transform: rotate(-135deg);
}

/* 移动端导航覆盖层 */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 43, 73, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 移动端导航菜单 */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: var(--color-background-white);
    z-index: 1040;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-menu .nav-links {
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu .nav-links li {
    margin: 0 0 20px 0;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
}

.mobile-nav-menu .nav-links li:last-child {
    border-bottom: none;
}

.mobile-nav-menu .nav-links a {
    display: block;
    color: var(--color-primary);
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    padding: 10px 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-menu .nav-links a:hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
     :root {
        --font-size-base: 14px; /* Smaller base on small screens */
    }
    
    /* 显示汉堡菜单，隐藏桌面导航 */
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
    }
    
    /* 导航栏调整 */
    .navbar {
        padding: 15px 0;
    }
    
    .navbar .container {
        position: relative;
    }

    .hero-section {
        padding: calc(var(--spacing-unit) * 4) 0;
        min-height: 40vh;
    }

    .hero-section h1 { font-size: calc(var(--font-size-base) * 2.4); }
    .hero-section .subtitle { font-size: var(--font-size-base); }

    .content-section { padding: calc(var(--spacing-unit) * 3) 0; }
    .content-card, #about-short .card-inner { padding: calc(var(--spacing-unit) * 1.5); }

    /* Adjust about grid for mobile */
    .about-story-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: calc(var(--spacing-unit) * 1.5);
    }

    .about-image {
         order: -1; /* Show image first on mobile */
         margin-bottom: var(--spacing-unit);
    }

    .values-grid {
        grid-template-columns: 1fr; /* Single column grid on mobile */
    }

    .btn {
        padding: calc(var(--spacing-unit) * 0.6) calc(var(--spacing-unit) * 1.2);
    }

    .about-short-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: var(--spacing-unit);
    }
    .about-short-image-container {
        order: -1; /* Image first on mobile */
        margin-bottom: var(--spacing-unit); 
    }
    .about-short-image-small {
        max-width: 60%; /* Example: make image smaller % on mobile */
        margin: 0 auto; /* Center image on mobile */
    }
}

@media (max-width: 576px) {
    .hero-section h1 { font-size: calc(var(--font-size-base) * 2); }
    .job-item, .tender-item { padding: var(--spacing-unit); }
}

/* News Page Styles */
.news-hero {
    background-color: #f4f4f4; /* Light grey background */
    padding: 60px 0;
    text-align: center;
}

.news-hero h2 {
    font-size: 2.8em;
    margin-bottom: 10px;
    color: #333;
}

.news-hero p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 0;
}

.news-articles {
    padding: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.news-item img {
    width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover; /* Ensure images cover the area well */
}

.news-item h3 {
    font-size: 1.6em;
    color: #333;
    margin: 20px 20px 10px;
}

.news-item .news-meta {
    font-size: 0.9em;
    color: #777;
    margin: 0 20px 15px;
}

.news-item .news-meta time {
    font-weight: bold;
}

.news-item p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    margin: 0 20px 20px;
}

.news-item .read-more {
    display: inline-block;
    background-color: var(--color-accent); /* Gold color, adjust as needed */
    color: #fff;
    padding: 10px 20px;
    margin: 0 20px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: 1px solid var(--color-accent); /* Add border */
}

.news-item .read-more:hover {
    background-color: var(--color-accent-darker); /* Darker gold on hover */
    border-color: var(--color-accent-darker); /* Add border */
}

/* Adjust footer to be at the bottom */
main {
    flex: 1;
}

/* Ensure navbar links are aligned */
.navbar .nav-links {
    display: flex;
    align-items: center; /* Vertically align items */
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar .nav-links li {
    margin-left: 20px; /* Adjust spacing as needed */
}

.navbar .nav-links li:first-child {
    margin-left: 0;
} 