﻿@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');

/* Global heading styles - all headings use Archivo Black with -0.5px letter spacing */
h1, h2, h3, h4, h5, h6 {
    font-family: "Archivo Black", Arial, Helvetica, sans-serif;
    font-weight: 400;
    letter-spacing: -0.5px;
}

html {
    color: #131b30;
    font-family: Arial, Helvetica, sans-serif;
}

.hero h1, .hero h2 {
    text-shadow: -2px 5px 7px rgba(0,0,0,.44);
}

.row.lead-paragraph {
    margin-bottom: 2rem;
}

/* Hero slider headings now inherit global Archivo Black styling */
.hero .hero-slider .hero-slide .hero-slide_content h1,
.hero .hero-slider .hero-slide .hero-slide_content h2 {
    font-family: "Archivo Black", Arial, Helvetica, sans-serif;
    font-weight: 400;
    letter-spacing: -0.5px;
}

/* Keep readable line breaks in hero title on larger screens; allow natural wrap on small */
.hero .hero-slide_content h1 {
	text-wrap: balance;
}

@media (max-width: 640px) {
	.hero .br-sm-hide { display: none; }
}

/* Fixed-width hero text container until viewport drops below 640px */
@media (min-width: 641px) {
	.hero .hero-slide_content {
		width: 640px;
		max-width: 640px;
		flex: 0 0 640px; /* override grid percentage width */
	}

	.hero .hero-slide_content h1 {
		white-space: normal;
		max-inline-size: 100%;
		text-wrap: balance;
	}
}

/* Hero Button Styles */
.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    font-family: Arial, Helvetica, sans-serif;
}

.hero-buttons-secondary {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    background-color: #00b9fd;
    color: white;
    padding: 16px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    display: inline-block;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 185, 253, 0.3);
    transition: all 0.3s ease;
}

.hero-btn-primary:hover {
    background-color: #0099d4;
    box-shadow: 0 6px 16px rgba(0, 185, 253, 0.4);
    transform: translateY(-2px);
}

.hero-btn-secondary {
    background-color: transparent;
    color: white;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    background-color: white;
    color: #00b9fd;
}

.hero-btn-tertiary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.hero-btn-tertiary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Make hero slide the positioning context for content */
.hero .hero-slider .hero-slide {
    position: relative;
    height: 100%;
}

@media (max-width: 640px) {
    .hero .hero-slider .hero-slide {
        height: auto; /* Allow natural height on mobile */
    }
}

/* Make hero row the positioning context so logo aligns to content area */
.hero .hero-slide .row {
    position: relative;
    height: 100%;
}

/* Technical Excellence Logo Styles */
.technical-excellence-logo {
    position: absolute;
    bottom: 2rem;
    right: 0;
    z-index: 10;
    /* Container sized to match SVG exactly */
    width: 14.44rem; /* 4rem × 3.61 aspect ratio */
    height: 4rem;
}

.technical-excellence-logo .icon-technical-excellence {
    width: 100%;
    height: 100%;
    fill: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    display: block; /* Remove any inline spacing */
}

@media (max-width: 1024px) {
    .technical-excellence-logo {
        bottom: 1.5rem;
        right: 0;
        width: 10.83rem; /* 3rem × 3.61 aspect ratio */
        height: 3rem;
    }
}

@media (max-width: 640px) {
    .technical-excellence-logo {
        position: relative; /* Change from absolute to relative */
        bottom: auto;
        right: auto;
        margin-top: 2rem; /* Add spacing from text content */
        margin-left: auto; /* Align to right */
        margin-right: 1rem;
        width: 6.49rem; /* 1.8rem × 3.61 aspect ratio - even smaller */
        height: 1.8rem;
        opacity: 0.9; /* Slightly transparent to reduce visual weight */
    }
}

/* Information Panels Styles */
.info-panels-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Fix info panels for very narrow screens */
@media (max-width: 320px) {
    .info-panels-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}



.info-panel {
    height: 100%;
}

.info-panel-link:hover {
    opacity: 0.8;
}

/* Responsive adjustments for the information panels */
@media (max-width: 1024px) and (min-width: 769px) {
    .info-panel-content {
        padding: 20px !important;
    }
    
    .info-panel-header {
        padding: 12px !important;
        font-size: 1.1rem !important;
    }
}

@media (max-width: 768px) {
    .info-panel-content {
        padding: 20px !important;
    }
    
    .info-panel-header {
        padding: 15px !important;
        font-size: 1.2rem !important;
    }
    
    .info-panel-text {
        font-size: 0.95rem !important;
    }
}

/* styled arrow Link */
.arrow-link {
    color: #131b30;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.arrow-link::after {
    content: " →";
    margin-left: 0.3em;
    transition: transform 0.2s ease;
}

.arrow-link:hover {
    color: #30b3e9;
}

.arrow-link:hover::after {
    transform: translateX(3px);
}

/* Timeline and Key Dates Grid Responsive Styles */
.row.key-dates-panel {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Force 4 columns on desktop, hide timeline when too narrow */
@media (max-width: 900px) {
    .timeline-container { 
        display: none !important; 
    }
}

/* Additional timeline fixes for very narrow screens */
@media (max-width: 320px) {
    .timeline-container { 
        display: none !important; /* Ensure timeline is hidden on very narrow screens */
    }
}

/* 2x2 grid on tablets */
@media (max-width: 900px) and (min-width: 600px) {
    .key-dates-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Single column on mobile */
@media (max-width: 599px) {
    .key-dates-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Fix inline styles for very narrow screens */
@media (max-width: 480px) {
    /* Override inline grid styles for key dates */
    div[style*="grid-template-columns"][style*="auto-fit"][style*="minmax"][style*="200px"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    /* Override timeline grid for narrow screens */
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 320px) {
    /* Further adjust for very narrow screens */
    div[style*="grid-template-columns"][style*="auto-fit"][style*="minmax"][style*="200px"] {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    /* Single column timeline on very narrow screens */
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 5px !important;
    }
    
    /* Reduce padding in content areas */
    .row.lead-paragraph {
        margin-bottom: 1.5rem !important;
    }
    
    /* Fix main content padding */
    .row .column {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}


/* Key Dates Wireframe Styling */
.key-dates-heading {
    border-bottom: 2px solid #003366;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    color: #003366;
}

.key-dates-heading:first-of-type {
    margin-top: 0;
}

.next-deadline {
    background: #ffe08a;
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    margin: 2rem 0;
}

.key-dates-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.key-dates-table th,
.key-dates-table td {
    border: 1px solid #ccc;
    padding: 0.75rem;
    text-align: left;
}

.key-dates-table th {
    background: #131b30;
    color: #fff;
    font-weight: bold;
}

.key-dates-table tr:nth-child(even) {
    background: #e8f4fd;
}

.key-dates-table tr:hover {
    background: #add7f8;
}

.key-dates-table p {
    line-height: 1.6;
    margin: 0;
    padding:0;
}

.info-panel .icon {
    margin-right: .6em;
    margin-top: -4px;
}

/* Header bar spacing (no fixed height) */
.header__nav-mobile .header__bar,
.header .header__bar {
    padding: var(--header-padding-mobile) 0;
}

/* Header logo container */
.header .header__bar .header__logo {
    display: block;
}

/* Shared logo dimensions as CSS variables */
:root {
    --logo-width: 13.5rem;      /* 216px */
    --logo-height: 3.3625rem;   /* 53.8px */
    --header-padding-mobile: 0.75rem; /* ~12px (top + bottom used below) */
    --header-height-mobile: calc(var(--logo-height) + (var(--header-padding-mobile) * 2));
}

/* Responsive logo sizing for very narrow screens */
@media (max-width: 480px) {
    :root {
        --logo-width: 11rem;      /* 176px - smaller for mobile */
        --logo-height: 2.75rem;   /* 44px - proportionally smaller */
        --header-height-mobile: calc(var(--logo-height) + (var(--header-padding-mobile) * 2));
    }
}

@media (max-width: 320px) {
    :root {
        --logo-width: 9rem;       /* 144px - even smaller for very narrow screens */
        --logo-height: 2.25rem;   /* 36px - proportionally smaller */
        --header-height-mobile: calc(var(--logo-height) + (var(--header-padding-mobile) * 2));
    }
}

/* Clickable area must match intended logo size */
.header .header__bar .logo__link,
.header__nav-mobile .header__bar .logo__link {
    display: block;
    width: var(--logo-width);
    height: var(--logo-height);
    line-height: 0;
    overflow: hidden;
}

/* SVG fills container, keeping aspect ratio */
.header .header__bar .header__logo .icon.icon-logo,
.header__nav-mobile .header__bar .header__logo .icon.icon-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: left center;
    fill: #fff;
}


.header .header__nav-desktop .nav__list .nav__item:first-child {
    margin: 0 0.5rem 0 1rem;
}

/* Adjust spacing for all navigation items */
.header .header__nav-desktop .nav__list .nav__item {
    margin: 0 0.5rem; /* Reduced from 0.75rem to 0.5rem for better fit */
}

/* Ensure menu items have consistent, equal spacing */
.header .header__nav-desktop .nav__list {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: nowrap;
}


/* Align logo with navigation menu text center - desktop only */
@media only screen and (min-width: 74.5em) {
    .header .header__bar .header__logo {
        padding-top: 0.3125rem; /* Match navigation padding for vertical alignment */
        padding-right: 2rem; /* Add more space between logo and navigation */
    }
    .header .header__bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .header .header__nav-desktop {
        flex: 1;
        padding-left: 1rem;
    }
}

.cta-banner-header p, .cta-banner-header h1, .cta-banner-header h2, .cta-banner-header h3  {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;

}

/* CTA Button Styles */
a.cta-button {
    background-color: #fff;
    color: #131b30;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer !important;
}

/* Override Chrome user agent style for contenteditable areas */
a.cta-button:-webkit-any-link {
    cursor: pointer !important;
}

a.cta-button:hover {
    background-color: #f8f9fa !important;
    color: #0d1421 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25) !important;
    cursor: pointer !important;
}

.twi_btn_blue {
    font-size: 1.0625rem;
    font-weight: 600;
    padding: .625rem 1.75rem;
    color: #fff !important;
    background: #131b30;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: 0;
    transition: all linear .2s;
}

.twi_btn_blue:focus, .twi_btn_blue:hover {
    background: #30b3e9;
    cursor: pointer;
}

/* ========================================
   BACK TO TOP OVERRIDE STYLES
   Override default back-to-top styles from styles.non-min.css
   - Remove background image (including !important declarations)
   - Remove rotation transform
   - Make SVG larger
   - Ensure new SVG displays correctly
   ======================================== */

/* Very high specificity override for back-to-top SVG element */
#back-to-top{
    position: fixed;
    bottom: 40px;
    right: 40px;
    height: 40px;
    width: 40px;
    z-index: 999999;
    background: none!important;
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    -o-transform: none !important;  

}

#back-to-top .icon {
    width: 40px;
    height: 40px;
    top: 0;
    left: 0;
    margin-top: 0;
    margin-left: 0;
}


/* Show state for back-to-top SVG */
body div#back-to-top.show,
html body div#back-to-top.show {
    opacity: 1;
}

/* Ensure the new square icon displays properly */
body div#back-to-top use,
html body div#back-to-top use {
    transform: none;
}

/* SVG styles for back-to-top icon - moved from inline styles */
#icon-square-lt-blue-top-of-page .brst0 {
    fill: #30b3e9;
}

#icon-square-lt-blue-top-of-page .brst1 {
    fill: #fff;
}

/* ========================================
   MOBILE MENU LOGO COLOR CHANGE
   When mobile menu is active, change logo to dark blue
   ======================================== */

/* Mobile navigation logo color change when menu is active */
.header__nav-mobile.nav--active .header__logo .icon-logo {
    --logo-stroke-color: #0161AA;
    --logo-fill-color: #0161AA;
}


.header__nav-mobile.nav--active .header__bar .header__logo .icon-logo {
    fill: var(--logo-fill-color);
    /* stroke: var(--logo-stroke-color); */
}

/* ========================================
   FOOTER STYLES
   ======================================== */

/* Footer main styling */
.footer {
    background-color: #131b30;
    color: #fff;
    padding: 2rem 3rem 1rem 3rem;
    font-family: Arial, sans-serif;
    text-align: left;
}

/* Footer row container */
.footer .row {
    display: flex;
    align-items: stretch;
}

/* Footer columns */
.footer-column {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding-right: 1.5rem;
}

/* Add vertical dividers between columns */
.footer-column:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Adjust padding for the last column */
.footer-column:last-child {
    padding-right: 0;
}

/* Special styling for the first footer column (logo) */
.footer-column:first-child {
    justify-content: center;
    align-items: flex-start;
}

/* Footer logo container */
.footer-logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Left-aligned on desktop */
    height: 100%;
    margin-bottom: 1rem;
}

/* Footer logo SVG */
.footer .icon.footer-logo {
    height: 4.5rem;
    width: auto;
    fill: #fff;
    margin-right: 1rem;
}

/* Footer tagline */
.footer-tagline {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    opacity: 0.9;
}

/* Footer section headings */
.footer-heading {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    margin-top: 0;
}

/* Footer quick links list */
.footer-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-quick-links li {
    margin-bottom: 0.5rem;
}

.footer-quick-links li:last-child {
    margin-bottom: 0;
}

/* Footer quick links anchors */
.footer-quick-links a {
    color: #00b9fd;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

/* Footer contact info container */
.footer-contact-info {
    margin-bottom: 0;
}

/* Footer contact paragraphs */
.footer-contact-info p {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.footer-contact-info p:last-child {
    margin: 0;
    line-height: 1.4;
}

/* Footer contact links */
.footer-contact-info a {
    color: #00b9fd;
    text-decoration: none;
}

/* Footer copyright section */
.footer-copyright-section {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-copyright-container {
    text-align: center;
}

.footer-copyright-text {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.footer-copyright-text a {
    color: #00b9fd;
    text-decoration: none;
}

/* Footer links container */
.footer-links-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links-container a {
    color: #00b9fd;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Footer link hover effects */
.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Remove any custom bullets/chevrons from footer quick links */
.footer-quick-links,
.footer-quick-links li,
.footer-quick-links li::before,
.footer-quick-links li::after,
.footer-quick-links a::before,
.footer-quick-links a::after {
    content: none !important;
    background: none !important;
    background-image: none !important;
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
    margin-bottom: 0 !important;
}

.footer-quick-links li {
    position: relative !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    padding-bottom: 0;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    .footer .row {
        flex-direction: column;
    }
    
    .footer .column {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer .column:last-child {
        margin-bottom: 0;
    }
    
    .footer div[style*="flex-wrap"] {
        flex-direction: column;
        gap: 1rem;
    }
    

    
    /* Fix column constraints on mobile */
    .footer-column {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    /* Ensure contact information is centered and contained on mobile */
    .footer-contact-info {
        padding: 0 15px; /* Add inner padding for better text spacing */
    }
    
    .footer-contact-info p,
    .footer-contact-info a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Ensure quick links have proper spacing on mobile */
    .footer-quick-links {
        padding: 0 15px; /* Add inner padding to match contact section */
    }
    
    /* Ensure footer headings are contained */
    .footer-heading {
        text-align: center;
        margin: 0 0 1rem 0;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure all direct children of footer column are contained */
    .footer-column > * {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    

}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 1rem 0; /* Reduced top padding */
    }
    
    .footer .footer-logo {
        height: 3.5rem;
    }
    
    .footer h4 {
        font-size: 1.1rem;
    }
    
    /* Adjust padding for very small screens */
    .footer-column {
        padding: 0 10px; /* Reduced padding on very small screens */
    }
    
    /* Maintain inner padding for contact info */
    .footer-contact-info {
        padding: 0 5px; /* Reduced inner padding on very small screens */
    }
    
    .footer-quick-links {
        padding: 0 5px; /* Match contact info padding on very small screens */
    }
}

/* Additional fixes for very narrow screens (320px and below) */
@media (max-width: 320px) {
    .footer {
        padding: 1rem 0 0.5rem 0; /* Further reduced padding */
    }
    
    .footer-column {
        padding: 0 5px; /* Minimal padding for very narrow screens */
        margin-bottom: 1.5rem; /* Reduced margin between sections */
    }
    
    .footer-contact-info {
        padding: 0; /* Remove inner padding */
    }
    
    .footer-quick-links {
        padding: 0; /* Remove inner padding */
    }
    
    .footer-heading {
        font-size: 1rem; /* Smaller headings */
        margin-bottom: 0.75rem; /* Reduced margin */
    }
    
    .footer-contact-info p {
        font-size: 0.9rem; /* Smaller text */
        margin-bottom: 0.5rem; /* Reduced spacing */
    }
    
    .footer-quick-links a {
        font-size: 0.9rem; /* Smaller link text */
    }
    
    .footer-copyright-text {
        font-size: 0.85rem; /* Smaller copyright text */
    }
    
    .footer-links-container a {
        font-size: 0.8rem; /* Smaller footer links */
    }
}

/* ================================
   CUSTOM BULLET POINTS OVERRIDE
   - Change skewed bullets to blue squares
   ================================ */

/* Override existing bullet styling with blue squares */
.main li:before {
    content: '';
    position: absolute;
    top: 7px;
    left: 10px;
    height: 10px;
    width: 10px;
    background: #30b3e9;
    transform: none; /* Remove skew transform */
    border-radius: 2px; /* Slightly rounded corners for modern look */
}

/* Hide the second pseudo-element since we only need one square */
.main li:after {
    display: none;
}

/* Remove custom bullets from footer */
.footer .main li:before,
.footer .main li:after,
.footer-social li:before,
.footer-social li:after {
    display: none;
}

/* Footer Contact Info Styles */
.footer-contact-info {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* text-align: center; Center contact text */
}

/* Footer Quick Links Styles */
.footer-quick-links {
    /* text-align: center; Center quick links */
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Center content within footer columns */
.footer-column {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
}

/* Logo column specific styling */
.footer-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-contact-info p {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.footer-contact-info p:last-child {
    margin-bottom: 0;
}

/* Footer Social Media Styles */
.footer-social {
    margin-top: 20px;
    display: inline-flex; /* Keep items together */
    align-items: center;
    gap: 8px; /* Reduced gap to bring icon closer to text */
    width: auto; /* Don't stretch */
}



.footer-social-heading {
    font-size: 1rem;
    margin-bottom: 0;
}

.footer-social-link {
    color: #0077b5;
    font-size: 1.5rem;
    text-decoration: none;
    margin-left: .5rem;
}

.footer-linkedin-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Mobile responsive adjustments for footer social */
@media (max-width: 768px) {
    .footer-social {
        gap: 6px; /* Slightly smaller gap on mobile */
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .footer-social {
        margin-top: 10px;
        gap: 5px; /* Even smaller gap on very small screens */
    }
    
    .footer-social-heading {
        font-size: 0.9rem; /* Slightly smaller on very small screens */
    }
    
    .footer-linkedin-icon {
        width: 20px;
        height: 20px;
    }
}



/* ================================
   Hero overlap fix on small screens
   - Push hero content below fixed header/logo
   - Tweak heading sizes for tiny viewports
   - Reduce hero height for mobile screens
   ================================ */
@media (max-width: 640px) {
    /* Move spacing to content only so hero background remains flush at the very top */
    .hero .hero-slider .hero-slide .hero-slide_content { 
        padding-top: 0; /* Use margin so any right-edge rule/line aligns with text height */
        padding-left: 1rem; /* Add horizontal padding */
        padding-right: 1rem;
        max-width: calc(100% - 2rem); /* Ensure content doesn't overflow */
    }

    .hero .hero-slider .hero-slide .hero-slide_content h1 {
        font-size: clamp(1.25rem, 6.2vw, 1.65rem);
        line-height: 1.15;
        margin-top: 0;
        margin-bottom: 1rem; /* Ensure spacing between h1 and h2 */
        overflow-wrap: anywhere; /* Prevent long words from overflowing */
        word-break: break-word;
        hyphens: auto;
    }

    .hero .hero-slider .hero-slide .hero-slide_content h2 {
        font-size: clamp(1rem, 5.5vw, 1.25rem);
        line-height: 1.3;
        margin-top: 0.25rem;
        overflow-wrap: anywhere; /* Prevent long words from overflowing */
        word-break: break-word;
        hyphens: auto;
    }
}

/* Reduce H1 further when viewport drops below ~460px so long words fit */
@media (max-width: 460px) {
    .hero .hero-slider .hero-slide .hero-slide_content h1 {
        font-size: clamp(1.25rem, 6.2vw, 1.65rem);
        letter-spacing: -0.02rem;
    }
}

@media (max-width: 380px) {
    .hero .hero-slider .hero-slide .hero-slide_content { 
        padding-left: 0.5rem; /* Add horizontal padding to prevent edge touching */
        padding-right: 0.5rem;
    }
}

/* Fix for very narrow screens (320px and below) */
@media (max-width: 320px) {
    .hero .hero-slider .hero-slide .hero-slide_content { 
        padding-left: 0.75rem; /* More horizontal padding */
        padding-right: 0.75rem;
    }
    
    .hero .hero-slider .hero-slide .hero-slide_content h1 {
        font-size: clamp(1.15rem, 5.5vw, 1.5rem); /* Even smaller heading for very narrow screens */
        line-height: 1.2;
        letter-spacing: -0.01rem;
    }
    
    .hero .hero-slider .hero-slide .hero-slide_content h2 {
        font-size: clamp(0.9rem, 4.5vw, 1.1rem); /* Smaller subtitle */
        line-height: 1.25;
        margin-top: 0.5rem;
    }
}

/* ================================
   Hero Slider Height and Shape Modifications
   - Remove slanted bottom
   - Set height to 576px (36rem)
   ================================ */

.hero {
    height: 36rem; /* 576px converted to rem */
    clip-path: none; /* Remove slanted bottom */
}

/* Ensure hero slider fills the full height */
.hero .hero-slider {
    height: 100%;
}

@media (max-width: 640px) {
    .hero .hero-slider {
        height: auto;
        min-height: 100%;
    }
}

/* Override main styles and vertically center the hero slide content */
.hero .hero-slider .hero-slide .hero-slide_content {
    position: absolute;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Adjust for smaller screens */
@media (max-width: 640px) {
    .hero .hero-slider .hero-slide .hero-slide_content {
        position: relative !important; /* Use relative positioning */
        top: auto !important;
        transform: none !important;
        margin-top: 0; /* Remove conflicting margin */
        padding-top: 6rem; /* Further increased padding to account for potential fixed header */
        padding-bottom: 2rem; /* Add bottom padding */
        z-index: 5; /* Ensure content is above other elements */
    }
    
    /* Add subtle gradient background on mobile for better text readability */
    .hero .hero-slider .hero-slide .hero-slide_content::before {
        content: '';
        position: absolute;
        top: 0;
        left: -1rem;
        right: -1rem;
        bottom: 0;
        background: linear-gradient(to bottom, 
            rgba(0, 0, 0, 0.6) 0%, 
            rgba(0, 0, 0, 0.4) 50%, 
            rgba(0, 0, 0, 0.3) 100%);
        z-index: -1;
        border-radius: 8px;
    }
}

/* Remove slanted bottom on all screen sizes */
@media only screen and (min-width: 74.5em) {
    .hero {
        clip-path: none; /* Override desktop slanted bottom */
    }
}

/* Mobile hero height adjustments - must come AFTER main .hero styles */
@media (max-width: 640px) {
    .hero {
        height: auto !important; /* Allow content to determine height */
        min-height: 400px; /* Fixed minimum height */
        overflow: visible !important; /* Prevent content cutoff */
    }
    
    .hero .hero-slider {
        overflow: visible !important;
    }
    
    /* Make hero slide fill parent and position content from top */
    .hero .hero-slider .hero-slide {
        min-height: 400px;
        display: flex;
        align-items: flex-start; /* Align content to top */
        overflow: visible !important;
    }
    
    /* Ensure row maintains proper spacing on mobile */
    .hero .hero-slide .row {
        width: 100%;
        position: relative;
        padding-bottom: 3rem; /* Add padding at bottom for logo space */
    }
}

@media (max-width: 320px) {
    .hero {
        min-height: 350px !important; /* Compact but still readable for very small screens */
    }
    
    .hero .hero-slider .hero-slide {
        min-height: 350px;
    }
}

/* ========================================
   Mobile hero layout overrides
   - Increase specificity (prefixed with body) to avoid using !important
   - Ensure hero content clears header and never overlaps elements below
   ======================================== */
@media (max-width: 640px) {
    body .hero .hero-slider .hero-slide .hero-slide_content {
        padding-top: 10.3rem;
        padding-bottom: 2.5rem;
        margin-top: 0;
        min-height: 220px;
    }

    body .hero {
        height: auto;
        min-height: 420px;
    }

    body .hero .hero-slider {
        height: auto;
    }

    body .hero .hero-slider .hero-slide .hero-slide_content h1,
    body .hero .hero-slider .hero-slide .hero-slide_content h2 {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }
}

