/* Main CSS File */

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

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #444;
    background-color: #fff;
    line-height: 1.6;
}

.container {
    width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Colors */
.red {
    color: #E31E24;
}

.blue {
    color: #004B8D;
}

/* Adjusted to match typical corporate blue */

/* Top Bar */
.top-bar {
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
    font-size: 12px;
}

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

.contact-info {
    color: #E31E24;
    font-weight: 700;
}

.social-links a {
    color: #888;
    margin-left: 10px;
    font-size: 14px;
}

.social-links a:hover {
    color: #E31E24;
}

/* Main Header */
.main-header {
    padding: 25px 0;
    background: #fff;
}

.header-content {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
}

.logo h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.logo p {
    font-size: 12px;
    letter-spacing: 1px;
    color: #666;
    font-weight: 600;
}

/* Navigation */
.main-nav {
    background: #fff;
    /* Based on visual analysis, the nav sits on white but has borders */
    border-top: 1px solid #eee;
    border-bottom: 3px solid #E31E24;
    /* The red line accent */
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-right: 1px;
}

.main-nav a {
    display: block;
    padding: 15px 20px;
    font-weight: 700;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #E31E24;
    color: #fff;
}

/* Hero Section */
.hero-section {
    padding-top: 20px;
    background-color: #f9f9f9;
    padding-bottom: 30px;
}

.hero-container {
    display: flex;
    justify-content: space-between;
}

/* Slider */
.main-slider {
    width: 730px;
    /* ~73% of 1000px container */
    height: 380px;
    position: relative;
    overflow: hidden;
    background: #000;
    border-bottom: 3px solid #E31E24;
}

.slider-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    animation: fadeEffect 1s;
}

.slider-wrapper img.active {
    display: block;
}

@keyframes fadeEffect {
    from {
        opacity: 0.4
    }

    to {
        opacity: 1
    }
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
}

.slider-controls span {
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    user-select: none;
}

.slider-controls span:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Sidebar */
.news-sidebar {
    width: 250px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: 3px solid #004B8D;
    /* Blue accent */
}

.sidebar-header {
    background: #f4f4f4;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h3 {
    font-size: 14px;
    color: #333;
    font-weight: 700;
}

.news-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.date-box {
    background: #E31E24;
    color: #fff;
    width: 45px;
    height: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.date-box .day {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.date-box .month {
    font-size: 10px;
    text-transform: uppercase;
}

.news-content a {
    font-size: 12px;
    color: #444;
    font-weight: 600;
    line-height: 1.3;
}

.news-content a:hover {
    color: #E31E24;
}

/* Quick Links Boxes */
.quick-links-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.quick-link-box {
    width: 32%;
    background: #fff;
    /* or gradient as per original */
    border: 1px solid #ddd;
    padding: 15px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    background: linear-gradient(to bottom, #ffffff 0%, #f6f6f6 100%);
}

.quick-link-box:hover {
    border-color: #bbb;
    background: linear-gradient(to bottom, #f6f6f6 0%, #e9e9e9 100%);
}

.quick-link-box i {
    font-size: 24px;
    color: #E31E24;
    margin-right: 15px;
}

.quick-link-box span {
    font-weight: 700;
    color: #333;
    font-size: 13px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

/* Main Content Section */
.main-content {
    padding: 40px 0;
    background: #fff;
}

.intro-text h2 {
    font-size: 24px;
    color: #004B8D;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-family: 'Oswald', sans-serif;
}

.intro-text p {
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
    text-align: justify;
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px;
}

.service-item {
    width: 23%;
    /* 4 items per row */
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

.service-item:hover {
    border-color: #ddd;
    border-bottom-color: #E31E24;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-item i {
    font-size: 36px;
    color: #004B8D;
    margin-bottom: 15px;
}

.service-item h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    font-family: 'Oswald', sans-serif;
}

.service-item p {
    font-size: 12px;
    color: #777;
}

/* FooterStyles */
footer {
    background: #333;
    color: #fff;
    padding: 20px 0;
    margin-top: 30px;
}

.footer-content {
    text-align: center;
    font-size: 12px;
    color: #bbb;
}

/* Subpage Styles */

.page-title h2 {
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid #E31E24;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-family: 'Oswald', sans-serif;
    display: inline-block;
}

.subpage-content .text-block {
    margin-bottom: 30px;
}

.subpage-content h3 {
    font-size: 18px;
    color: #004B8D;
    margin-bottom: 10px;
    font-weight: 700;
}

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

/* Projects Grid */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.project-item {
    width: 48%;
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
}

.project-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #E31E24;
}

.project-info {
    padding: 15px 0 5px 0;
}

.project-info h4 {
    font-size: 16px;
    color: #004B8D;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 5px;
}

.project-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
}