:root {
    --primary-color: #003366;
    /* Navy Blue */
    --secondary-color: #C5A059;
    /* Gold/Bronze */
    --text-color: #333333;
    --light-text: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e1e1e1;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

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

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    font-size: 14px;
}

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

.top-bar-info span {
    margin-right: 20px;
}

.top-bar-info i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.top-bar-social a {
    color: var(--white);
    margin-left: 15px;
}

.top-bar-social a:hover {
    color: var(--secondary-color);
}

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    align-items: center;
    height: 80px;
    /* justify-content: space-between; Removed to allow centering */
}

.logo {
    /* Ensure logo doesn't shrink */
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    /* Adjust based on preference */
    width: auto;
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-nav>ul {
    display: flex;
    /* margin-right: 30px; Removed margin */
}

.main-nav ul li {
    margin: 0 15px;
    position: relative;
    /* For dropdown positioning */
}

.main-nav ul li a {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 15px;
    display: block;
    /* Ensure padding/margin works */
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--secondary-color);
}

/* Dropdown Menu */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    padding: 10px 0;
    z-index: 1001;
    border-radius: 0 0 4px 4px;
    flex-direction: column;
    /* Safety net */
}

.main-nav ul li:hover .dropdown {
    display: block;
}

/* Dropdown Items */
.main-nav ul li .dropdown li {
    margin: 0;
    display: block;
}

.main-nav ul li .dropdown li a {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-color);
    border-bottom: 1px solid #f0f0f0;
}

.main-nav ul li .dropdown li:last-child a {
    border-bottom: none;
}

.main-nav ul li .dropdown li a:hover {
    background-color: var(--bg-light);
    color: var(--secondary-color);
    padding-left: 25px;
    /* Slide effect */
}

.has-dropdown>a i {
    font-size: 12px;
    margin-left: 5px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px 15px;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    /* Placeholder image */
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero h2 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin: 0 10px;
}

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

.section-header h2 {
    font-size: 36px;
    position: relative;
    padding-bottom: 15px;
}

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

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.about-item {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s;
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Services / Portfolio */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card .icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-item {
    height: 250px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.8);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-item:hover::before {
    opacity: 1;
}

.project-item::after {
    content: 'View Project';
    position: absolute;
    color: var(--white);
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.project-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Management Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img {
    height: 300px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: #f0f0f0;
}

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

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

.team-info {
    padding: 25px;
}

.team-info h3 {
    margin-bottom: 5px;
    font-size: 22px;
}

.team-info .job-title {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
}

.team-info p {
    font-size: 15px;
    color: var(--light-text);
    margin-bottom: 20px;
}

.team-social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s;
}

.team-social a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.team-social a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Contact Form */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 15px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form textarea {
    resize: vertical;
}

/* Video Feed */
.video-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    justify-content: center;
}

.video-item {
    aspect-ratio: 9 / 16;
    min-height: 250px;
    /* Fallback height */
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.video-overlay i {
    font-size: 40px;
    color: var(--white);
    opacity: 0.8;
    transition: transform 0.3s;
}

.video-item:hover .video-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.video-item:hover .video-overlay i {
    transform: scale(1.2);
}

.video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
    z-index: 2;
}

/* Careers */
.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Reduced min-width */
    gap: 20px;
    /* Reduced gap */
}

.career-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.career-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.career-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.career-card .location {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 15px;
}

.career-card .location i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.career-card p {
    margin-bottom: 20px;
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    font-size: 14px;
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-content {
    padding: 25px;
}

.blog-content .meta {
    font-size: 12px;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.blog-content h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Footer */
.main-footer {
    background-color: #1a1a1a;
    color: #b0b0b0;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid #333;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 20px;
}

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

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-links a {
    margin-left: 20px;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        display: block !important;
    }

    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }

    .top-bar-info span {
        display: block;
        margin: 5px 0;
        margin-right: 0;
    }

    .top-bar-social {
        margin-top: 5px;
    }

    .main-nav ul {
        display: none;
        /* Hide menu by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 1001;
        /* Ensure it's above other content */
    }

    .main-nav ul.active {
        display: flex;
    }

    .main-nav ul li {
        margin: 0;
        text-align: left;
        /* Align left for mobile list */
        width: 100%;
    }

    .main-nav ul li a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    /* Mobile Dropdown */
    .dropdown {
        position: static;
        display: none;
        /* Hidden by default */
        box-shadow: none;
        background-color: #f9f9f9;
        width: 100%;
        padding: 0;
    }

    .main-nav ul li:hover .dropdown,
    .main-nav ul li.dropdown-active .dropdown {
        display: block;
    }

    .main-nav ul li .dropdown li a {
        padding-left: 40px;
        /* Indent submenu */
        font-size: 13px;
    }

    .main-nav .btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 2000;
        /* Increased z-index significantly */
        position: relative;
        cursor: pointer;
        /* Ensure cursor indicates clickability */
        padding: 15px;
        /* Increase hit area */
    }

    .hero h2 {
        font-size: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin-top: 15px;
    }

    .footer-links a {
        margin: 0 10px;
    }
}