/* Root variables for dynamic height calculations */
:root {
    --hero-height: 60vh; /* Default hero image height */
    --header-height: 100px;
    --section-height-base: calc(100vh - var(--hero-height) - var(--header-height));
}

/* Reset and basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, calibri;
    line-height: 1.6;
    color: #333;
}

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

	.careers-container {
		padding: 0 50px !important;
		margin: 0 auto 100px auto;
	}
	

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Top Bar with Contact Us */
.top-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
}

.top-contact-link {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.top-contact-link:hover {
    color: #e3242b;
}

/* Main Navigation */
.navbar {
    padding: 15px 0;
}

.nav-container {
    max-width: 1500px;
    margin: 0 auto 0 25px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo {
    height: auto;
    width: 270px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 30px;
}

.nav-link {
    text-decoration: none;
    color: #000;
    /*font-weight: 600;*/
    font-size: 18px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #e31e24;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: auto; 
    min-height: auto;
    overflow: hidden;
    margin-top: 110px;
    --current-hero-height: clamp(300px, 60vh, 800px);
}

.hero-background {
    position: relative; 
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative; 
    width: 100%;
    height: auto; 
    object-fit: contain; 
    display: block;
    max-height: var(--current-hero-height);
} 


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    pointer-events: none; 
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Capabilities Section */
.capabilities {
    padding: 60px 0 80px 0;
    background: #f8f9fa;
    scroll-margin-top: 100px;
    min-height: calc(100vh - var(--current-hero-height, 60vh) - 150px); /* Dynamic based on hero height */
    display: flex;
    align-items: center;
}

/* decorative pseudo background for capabilities */
.capabilities {
    position: relative;
    overflow: hidden;
}
/*
.capabilities::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('images/bgimage.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.14;
    z-index: 0;
    pointer-events: none;
    filter: contrast(0.95) saturate(0.9);
}
*/

/* pseudo background for about section only */
.capabilities::before {
    content: "";
    position: absolute;
    inset: 0; 
    background-image: url('images/bgimage.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /opacity: 0.18;/
    z-index: 0;
    pointer-events: none;
    /transform: scale(1.02);/
}


.capabilities > .container,
.capabilities .section-title {
    position: relative;
    z-index: 2;
}

.about {
    position: relative;
    overflow: hidden;
}

/* pseudo background for about section only */
.about::before {
    content: "";
    position: absolute;
    inset: 0; 
    background-image: url('images/bgimage.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /opacity: 0.18;/
    z-index: 0;
    pointer-events: none;
    /transform: scale(1.02);/
}

.about > .container,
.about .section-title {
    position: relative;
    z-index: 2;
}

@media screen and (max-width: 768px) {
    .about::before {
        opacity: 0.08;
        transform: scale(1.05);
    }
}

@media screen and (max-width: 480px) {
    .about::before {
        display: none;
    }
}

.section-title {
    font-size: 2.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

/* Reduce section title margin in horizontal about layout */
.about-content .section-title {
    text-align: left; 
    margin-bottom: 30px; 
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 40px;

}

.capability-card {
    background-color: white; /* Use background-color instead of background shorthand */
    /*background-image: url('images/bgimage.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;*/
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

/* Overlay for better text readability - reduced opacity to show background image */
.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.25) 100%);
    z-index: 1;
    transition: background 0.3s ease;
	
}

/* Content should be above the overlay */
.capability-card h3,
.capability-card p {
    position: relative;
    z-index: 2;
}

.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.capability-card:hover::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.70) 0%, rgba(255,255,255,0.60) 100%);
}

.capability-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e3a8a;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.capability-card p {
    font-size: 1.0rem;
    line-height: 1.7;
    color: #333;
    text-shadow: 0px 1px 1px rgba(255,255,255,0.5);
	text-align: justify;
}


/* About Section */
.about {
    padding: 60px 0 80px 0; 
    background: white;
    scroll-margin-top: 100px;
    min-height: calc(100vh - var(--current-hero-height, 60vh) - 120px); /* Dynamic based on hero height */
    display: flex;
    align-items: center;
}

.about-content {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr; 
    gap: 60px;
    align-items: center; 
}

.about-image .carousel {
    width: 800px; 
    height: 450px; 
    max-width: 800px;
    max-height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    background: #000; 
    flex-shrink: 0;

}

.about-image .carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 900ms ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-slide.active {
    opacity: 0.8; 
    z-index: 2;
}

/* Responsive: on small screens place carousel above text and scale to available width */
@media screen and (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-image {
        order: 1; 
    }
    
    .about-text {
        order: 2; 
    }

    .about-image .carousel {
        width: 100%;
        height: calc(100vw * (450 / 800) * 0.9); 
        max-height: 350px;
    }
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text p {
    font-size: 1.0rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #666;
	text-align: justify;
}

.careers-text p {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #666;
}

.about-image {
    display: flex;
    justify-content: center; 
    align-items: center; 
    padding: 0; /* Removed padding to eliminate any offset */
}

.about-img {
    width: 100%;
    max-width: 560px; 
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Make the about image taller on larger screens while preserving aspect ratio via object-fit */
@media screen and (min-width: 992px) {
    .about-img {
        width: 100%;
        max-width: 720px;
        height: auto; 
        object-fit: contain;
    }
}

/* News Section */
.news {
    padding: 80px 0;
    background: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.news-section h2,
.about-us-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.news-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.news-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 8px;
}

.news-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.read-more {
    color: #e31e24;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

.about-us-section p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #666;
}

/* Contact Section */
.contact {
    position: relative;
    padding: 60px 0 80px 0;
    color: #222;
    background: #f4f6f8;
    scroll-margin-top: 100px; 
	/* Dynamic based on hero height */
    min-height: calc(100vh - var(--current-hero-height, 60vh) - 120px); 
    display: flex;
    align-items: center;

}

.contact-background {
    position: absolute;
    inset: 0; 
    width: 100%;
    height: 100%;
    overflow: hidden;

}

.contact-bg-image {
    position: relative;
    inset: 0;
    width: 100%;
	height: 100%;
    object-fit: fill;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

/* Ensure contact content displays above the background image */
.contact .container {
    position: relative;
}

.contact-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;

}

.contact-info {
    background: rgba(255,255,255,0.85);
    padding: 20px 22px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    max-width: 420px;
}

.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.contact-info address {
    font-style: normal;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #222;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    color: #222;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.contact .form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #222;
}

.contact .form-group input,
.contact .form-group select,
.contact .form-group textarea {
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 5px;
    background: #fff;
    color: #222;
    font-size: 1rem;
    min-height: 24px; /* Ensure consistent height */
    box-sizing: border-box;
}


.form-group select,
.form-group select option {
    color: #111 !important;
    background: #fff !important;
}

/* Custom select widget styles */
.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
}

.custom-select__trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
}

.custom-select__arrow {
    margin-left: 12px;
    opacity: 0.9;
    color: white;
}

.custom-select__options {
    position: absolute;
    left: 0;
    right: 0;
    margin: 6px 0 0 0;
    padding: 6px 0;
    list-style: none;
    background: rgba(0,0,0,0.75);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    max-height: 220px;
    overflow: auto;
    z-index: 50;
    display: none;
}

.custom-select.open .custom-select__options {
    display: block;
}

.custom-select__option {
    padding: 10px 14px;
    cursor: pointer;
    color: white;
}

.custom-select__option:hover,
.custom-select__option[aria-selected="true"] {
    background: rgba(255,255,255,0.04);
}

/* Hide only selects that have been enhanced by JS. Keeps native select visible if JS fails. */
select.enhanced-select {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Contact-scoped custom-select adjustments so trigger and options are visible on the light card */
.contact .custom-select__trigger {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    color: #222;
    padding: 12px; /* Ensure same padding as inputs */
    font-size: 1rem; /* Ensure same font size as inputs */
    min-height: 24px; /* Ensure consistent height with inputs */
    box-sizing: border-box;
}

.contact .custom-select {
    margin-top: 0; /* Remove extra margin that might cause misalignment */
}

.contact .custom-select__arrow { color: #222; }

.contact .custom-select__options {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    color: #222;
}

.contact .custom-select__option { color: #222; }

.contact .custom-select__option:hover,
.contact .custom-select__option[aria-selected="true"] {
    background: rgba(0,0,0,0.04);
}

/* Hide native select when custom dropdown is present */
.form-group select[aria-hidden="false"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Ensure proper alignment between form fields */
.form-group {
    align-items: stretch;
}

.form-group label {
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.custom-select {
    flex: 1;
}

/* Fix alignment issues in form rows */
.form-row .form-group {
    display: flex;
    flex-direction: column;
    min-height: 80px; /* Ensures consistent height across form groups */
    align-items: stretch;
}

/* Ensure form groups with custom selects align properly */
.form-group .custom-select {
    margin-top: 0;
    flex: 1;
}

/* Ensure labels are aligned across all form groups */
.form-row .form-group label {
    margin-bottom: 8px;
    min-height: 24px; /* Fixed label height for consistent alignment */
    display: flex;
    align-items: flex-end;
    font-weight: 600;
    color: #222;
}

/* Google reCAPTCHA styled widget (visual only, no connection) */
.recaptcha-placeholder {
    margin: 20px 0;
}

.recaptcha-widget {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 2px solid #d3d3d3;
    border-radius: 3px;
    padding: 14px;
    max-width: 304px;
    font-family: Roboto, helvetica, arial, sans-serif;
    position: relative;
}

.recaptcha-checkbox-container {
    margin-right: 12px;
    position: relative;
}

.recaptcha-checkbox {
    width: 28px;
    height: 28px;
    appearance: none;
    background: #fff;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.recaptcha-checkbox:hover {
    border-color: #999;
}

.recaptcha-checkbox:checked {
    background: #1c4587;
    border-color: #1c4587;
}

.recaptcha-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recaptcha-check-icon {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.recaptcha-checkbox:checked + .recaptcha-checkmark .recaptcha-check-icon {
    opacity: 1;
}

.recaptcha-text {
    flex: 1;
    font-size: 14px;
    color: #222;
    margin-right: 14px;
}

.recaptcha-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.recaptcha-logo-text {
    font-size: 10px;
    color: #555;
    font-weight: normal;
    margin-bottom: 2px;
}

.recaptcha-privacy-terms {
    font-size: 8px;
    color: #555;
}

.recaptcha-privacy-terms a {
    color: #555;
    text-decoration: none;
}

.recaptcha-privacy-terms a:hover {
    text-decoration: underline;
}

/* Ensure reCAPTCHA is visible on the contact form */
.contact .recaptcha-widget {
    background: #f9f9f9;
    border-color: #d3d3d3;
}

.contact .form-group input::placeholder,
.contact .form-group textarea::placeholder {
    color: rgba(0,0,0,0.45);
}

.form-disclaimer {
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-disclaimer input[type="checkbox"] {
    margin-top: 3px;
}

.contact .form-disclaimer label {
    font-size: 0.9rem;
    color: rgba(0,0,0,0.8);
}

.submit-btn {
    background: #e31e24;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #c41e23;
}

/* Form Messages */
.form-message {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    font-weight: 600;
    border-left: 4px solid #dc3545;
}

/* Checkbox validation styling */
.checkbox-error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 20%, 40%, 60%, 80% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
}

/* Enhanced error message styling */
.form-message-error::before {
    content: "⚠️ ";
    margin-right: 5px;
}

.form-message.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    background: #000; 
    padding: 40px 0;
}

.footer-container {
    max-width: 1500px;
    margin: 0 auto 0 25px;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
}

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

/* Full black logo in footer */

.footer-logo-full {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 50px;
}

.footer-logo-full .footer-logo-link {
    display: inline-block;
}

.footer-logo-full .footer-logo-img {
    height: auto;
    max-width: 270px; 
    width: 100%;
    display: block;
    object-fit: contain;
}

@media screen and (max-width: 480px) {
    .footer-logo-full .footer-logo-img {
        max-width: 270px;
    }
    .footer-content {
        justify-content: center;
        text-align: center;
    }
}

.footer-text p {
    color: #fff;
	 display: flex;
    font-size: 0.9rem;
	align-items: center;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
        background-color: #ffffff; 
        height: calc(100vh - 80px); 
        overflow-y: auto;
        padding-top: 30px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    }

    /* subtle overlay behind the menu to dim content */
    .nav-menu::before {
        content: "";
        position: fixed;
        left: 0;
        top: 80px;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0,0,0,0.02);
        transition: background 0.25s ease;
        pointer-events: none;
    }

    .nav-menu.active::before {
        background: rgba(0,0,0,0.28); 
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-image {
        max-height: 50vh; 
    }
    
    .hero {
        margin-top: 85px; 
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        
    }
    
    .about-image {
        order: 1; 
    }
    
    .about-text {
        order: 2; 
    }
    
    /* Center all text content on mobile */
    .about-content .section-title,
    .section-title,
    .capability-card h3,
    .capability-card p,
    .about-text,
    .about-text p,
    .news-section h2,
    .about-us-section h2,
    .news-item h4,
    .about-us-section p,
    .contact-info h2,
    .contact-info address,
    .footer-text p {
        text-align: center;
    }
    
    .about-img {
        max-width: 480px; 
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        /*flex-direction: column;*/
        gap: 20px;
    }
}

/* Mobile navigation stacking / visibility fixes */
.nav-menu {
    z-index: 2000; 
}

.nav-menu.active {
    left: 0; 
    z-index: 2000;
}

.hamburger {
    z-index: 2100; 
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image {
        max-height: 40vh; 
    }
    
    .hero {
        margin-top: 75px; 
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .capability-card {
        padding: 30px 20px;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Active Navigation States */
.nav-link.active {
    color: #e3242b;
}

/* Carousel container: fixed size per mock-up (6.5in x 3.5in) */
.carousel {
    position: relative;
    width: 6.5in; 
    height: 3.5in; 
    max-width: 100%; 
    margin: auto;
    overflow: hidden;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #000; 
}

.carousel-slides1 {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide1 {
    position: absolute;
    inset: 0; 
    opacity: 0;
    transition: opacity 900ms ease-in-out;
    z-index: 1;
    display: block;
    box-sizing: border-box;
}

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

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* Navigation buttons: support existing class names (.carousel-btn1 in markup) */
.carousel-btn,
.carousel-btn1 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    z-index: 10;
    border-radius: 6px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* SVG icons inside carousel buttons */
.carousel-btn1 svg {
    display: block;
    width: 20px;
    height: 20px;
}

.carousel-btn1:focus,
.carousel-btn1:hover {
    background-color: rgba(0,0,0,0.7);
    outline: none;
}

/* Dots (if present) */
.carousel-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    z-index: 20;
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #e31e24;
}

    .carousel-dots {
      text-align: center;
      margin-top: 10px;
    }

    .dot {
      display: inline-block;
      width: 10px;
      height: 10px;
      margin: 5px;
      background-color: #bbb;
      border-radius: 50%;
      cursor: pointer;
    }

    .dot.active {
      background-color: #717171;
    }

/* Responsive Height Adjustments for Mobile */
@media screen and (max-width: 768px) {
    .hero {
        --current-hero-height: clamp(250px, 45vh, 600px); /* Smaller hero on mobile */
    }
    
    /* Adjust section heights based on smaller hero */
    .capabilities {
        min-height: calc(100vh - var(--current-hero-height, 45vh) - 120px);
        padding: 40px 0 60px 0;
    }
    
    .about {
        min-height: calc(100vh - var(--current-hero-height, 45vh) - 100px);
        padding: 40px 0 60px 0;
    }
    
    .contact {
        min-height: calc(100vh - var(--current-hero-height, 45vh) - 100px);
        padding: 40px 0 60px 0;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        --current-hero-height: clamp(200px, 35vh, 400px); /* Even smaller hero on small mobile */
    }
    
    /* Further optimize for small mobile screens */
    .capabilities {
        min-height: calc(100vh - var(--current-hero-height, 35vh) - 100px);
        padding: 30px 0 50px 0;
    }
    
    .about {
        min-height: calc(100vh - var(--current-hero-height, 35vh) - 80px);
        padding: 30px 0 50px 0;
    }
    
    .contact {
        min-height: calc(100vh - var(--current-hero-height, 35vh) - 80px);
        padding: 30px 0 50px 0;
    }
}

/* Large screens get better space utilization */
@media screen and (min-width: 1200px) {
    .hero {
        --current-hero-height: clamp(400px, 65vh, 900px); /* Larger hero on big screens */
    }
    
    .capabilities {
        min-height: calc(100vh - var(--current-hero-height, 65vh) - 150px);
    }
    
    .about {
        min-height: calc(100vh - var(--current-hero-height, 65vh) - 120px);
    }
    
    .contact {
        min-height: calc(100vh - var(--current-hero-height, 65vh) - 120px);
    }
}
	
