/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Color and Style Variables */
:root {
    --primary-color: #1e3a8a;      /* Navy Blue */
    --primary-hover: #172554;
    --secondary-color: #0284c7;    /* Steel Blue */
    --accent-color: #ea580c;       /* Safety Orange */
    --accent-hover: #c2410c;
    --text-dark: #1e293b;          /* Dark Slate */
    --text-muted: #64748b;         /* Muted Gray */
    --bg-light: #f8fafc;           /* Soft Light Background */
    --bg-card: #ffffff;            /* Card White */
    --border-color: #e2e8f0;       /* Thin Borders */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent-color);
    color: #ffffff;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Header Top Bar */
.top-bar {
    background-color: #0f172a;
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid #1e293b;
}

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

.top-bar-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-contact span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-contact i {
    color: var(--accent-color);
}

.top-bar-social {
    display: flex;
    gap: 15px;
}

.top-bar-social a:hover {
    color: #ffffff;
}

/* Main Navigation */
.navbar {
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    text-transform: uppercase;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-item {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

.nav-item:hover, .nav-item.active {
    color: var(--secondary-color);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Banner / Hero Section */
.hero-slider {
    position: relative;
    height: 550px;
    background-color: #0f172a;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 650px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #cbd5e1;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Page Section Utility */
.section {
    padding: 80px 0;
}

.section-bg {
    background-color: #f1f5f9;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--accent-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Service Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.service-card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.1);
}

.service-card-icon {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.service-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.service-card-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card-more {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-card-more:hover {
    color: var(--accent-color);
}

/* About / Highlight Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.highlights-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.highlight-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.highlight-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.highlight-item-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
}

.highlight-item-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 5px solid #ffffff;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 180px;
}

.about-badge-num {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: #fbbf24;
}

.about-badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Project Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.project-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.project-card-img {
    height: 180px;
    overflow: hidden;
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-img img {
    transform: scale(1.1);
}

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

.project-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.project-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.project-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Post / Blog Section */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.post-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-img img {
    transform: scale(1.05);
}

.post-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    z-index: 10;
}

.badge-news { background-color: var(--secondary-color); }
.badge-recruit { background-color: var(--accent-color); }

.post-card-content {
    padding: 22px;
}

.post-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.post-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card-title a:hover {
    color: var(--secondary-color);
}

.post-card-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cta-banner p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #cbd5e1;
}

/* Inner Page Header */
.page-header {
    background: linear-gradient(to right, rgba(15,23,42,0.9), rgba(15,23,42,0.75)), url('https://picsum.photos/1920/400?sig=100');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

/* Sidebar Pages Layout */
.sidebar-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 40px;
}

.sidebar-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.sidebar-menu li {
    margin-bottom: 12px;
}

.sidebar-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f8fafc;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover, .sidebar-menu li.active a {
    background-color: #f1f5f9;
    border-left-color: var(--secondary-color);
    color: var(--primary-color);
}

.sidebar-hotline {
    text-align: center;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: var(--border-radius);
    padding: 30px 20px;
}

.sidebar-hotline i {
    font-size: 2.5rem;
    color: #f59e0b;
    margin-bottom: 15px;
}

.sidebar-hotline h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.sidebar-hotline .number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fbbf24;
}

/* Rich Text Content Formatting */
.rich-text-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.rich-text-content h1, .rich-text-content h2, .rich-text-content h3 {
    color: var(--primary-color);
    margin: 25px 0 15px 0;
}

.rich-text-content p {
    margin-bottom: 15px;
    color: #334155;
    text-align: justify;
}

.rich-text-content ul, .rich-text-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.rich-text-content ul { list-style-type: disc; }
.rich-text-content ol { list-style-type: decimal; }

.rich-text-content li {
    margin-bottom: 5px;
}

.rich-text-content img {
    border-radius: var(--border-radius);
    margin: 20px auto;
    box-shadow: var(--shadow-md);
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 40px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(2, 132, 199, 0.1);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-detail h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-info-detail p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-form-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.contact-form-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-transform: uppercase;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition-speed) ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.contact-map {
    margin-top: 50px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Footer Styles */
.footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 70px 0 20px 0;
    border-top: 5px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-about-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul a:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.footer-col ul a i {
    font-size: 0.8rem;
    color: var(--accent-color);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 0.9rem;
}

.footer-contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-contact-item i {
    color: var(--accent-color);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Media Queries */
@media(max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .sidebar-layout, .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    .navbar .container {
        position: relative;
    }
    
    .nav-menu {
        display: none; /* In a production app, we would add JS toggle for menu */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.mobile-active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-item {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-item::after {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-slider {
        height: 450px;
    }
}

@media(max-width: 480px) {
    .highlights-list {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
