/* ==========================================================================
   STATION GROUP - MASTER STYLESHEET
   ========================================================================== */

/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    --primary-black: #1a1a1a;
    --accent-gold: #c5a059;
    --text-dark: #333333;
    --border-color: #e0e0e0;
    --primary-blue: #141B2D;
--scroll-offset: 80px; /* Default for Index Page */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: clip; /* Changed from hidden to clip */
    max-width: 100%;
}

* { box-sizing: border-box; margin: 0; padding: 0; word-wrap: break-word; overflow-wrap: break-word; }

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-dark);
    background-color: #fcfcfc;
    overflow-x: clip; /* Changed from hidden to clip */
    max-width: 100%;
    padding-top: 80px !important; 
    margin: 0;
    padding-bottom: 0;
}

.scroll-section {
    scroll-margin-top: 63px; /* Forces the section to land 160px from the top */
}

/* --- 2. TYPOGRAPHY & UTILITIES --- */
/*p { text-align: justify; margin-bottom: 6px; }*/
p { 
    text-align: justify; 
    margin-bottom: 6px; 
    line-height: 1.6; /* Add this line here to specifically target paragraphs */
}
h1, h2, h3, h4 { color: var(--primary-black); margin-bottom: 6px; }
h2 { font-size: 14px; text-transform: uppercase; border-bottom: 2px solid var(--accent-gold); display: inline-block; padding-bottom: 3px; }

.small-caps { font-variant: small-caps; letter-spacing: 0.5px; }
.text-center { text-align: center; }

/* FIXED WIDTH CONTAINER & MOBILE FRIENDLY */
.container { width: 100%; max-width: 1200px; padding: 0 20px; margin: 0 auto; }

ul.custom-list { list-style: none; padding-left: 0; }
ul.custom-list li { position: relative; padding-left: 18px; margin-bottom: 4px; text-align: justify; }
ul.custom-list li::before { content: "▪"; color: var(--accent-gold); position: absolute; left: 0; top: 0; font-weight: bold; }

/* --- 3. HEADER & MENU --- */
header {
    background-color: var(--primary-blue) !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px !important;
    z-index: 10000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; 
    display: flex;
    align-items: center;
    transition: background-color 0.4s ease !important;
}

/* HEADER DESKTOP GRID LAYOUT (2 Rows on Right) */
.header-content { 
    display: grid; 
    grid-template-columns: auto 1fr; 
    grid-template-rows: 1fr 1fr; 
    align-items: center; 
    width: 100%; 
    height: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 15px; 
    gap: 0 20px; 
}

.brand-name { 
    grid-column: 1 / 2; 
    grid-row: 1 / 3; 
    display: flex; 
    align-items: center; 
    font-variant: small-caps;
    font-size: 18px !important;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    white-space: nowrap !important;
}
.brand-name img { height: 65px !important; width: auto; display: block; border: none !important; background: transparent !important; }

/* Desktop Search Positioning */
.search-container { 
    grid-column: 2 / 3; 
    grid-row: 1 / 2; 
    justify-self: flex-end; 
    align-self: flex-end; 
    display: flex; 
    align-items: center; 
    position: relative; 
    margin-bottom: 8px; 
}

/* Desktop Nav Positioning */
nav#nav-menu { 
    grid-column: 2 / 3; 
    grid-row: 2 / 3; 
    justify-self: flex-end; 
    align-self: flex-start; 
    display: flex; 
    margin-top: 8px; 
}

.menu { 
    display: flex; 
    list-style: none; 
    gap: 20px; 
    margin: 0; 
    padding: 0; 
    align-items: center; 
}

.hamburger { display: none; }

.home-icon { color: var(--accent-gold); transition: color 0.3s, opacity 0.4s ease, transform 0.4s ease; display: flex; align-items: center; opacity: 0; pointer-events: none; transform: scale(0.8); }
header.header-scrolled .home-icon { opacity: 1; pointer-events: auto; transform: scale(1); }
.home-icon:hover { color: #fff; }
.home-menu-icon { opacity: 1 !important; transform: scale(1) !important; pointer-events: auto !important; color: #efefef; transition: color 0.3s; display: flex; align-items: center; padding: 0 5px; }
.home-menu-icon:hover { color: var(--accent-gold); }

/* Menu Link Styles */
.menu > li { position: relative; padding: 0 10px; }
.menu > li > a { color: #efefef; text-decoration: none !important; font-size: 13px !important; font-weight: 600; text-transform: uppercase; transition: color 0.3s; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); white-space: nowrap; border: none !important; outline: none !important; }
.menu > li > a:hover { color: var(--accent-gold); }

/* Desktop Dropdown Styles */
.dropdown { display: none; position: absolute; top: 100%; left: 0; background-color: #fff; min-width: 250px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); border-top: 2px solid var(--accent-gold); padding: 5px 0; z-index: 10000; }
.dropdown li { width: 100%; }
.dropdown li a { display: block; padding: 10px 20px; color: var(--text-dark) !important; text-decoration: none; font-size: 13px !important; border-bottom: 1px solid #f0f0f0; text-shadow: none; white-space: normal; text-transform: none; }

.dropdown li a:hover { background: #f9f9f9; color: var(--accent-gold) !important; }
.has-dropdown:hover .dropdown { display: block; }

/* Search Box Styles */
/* --- SEARCH BAR FIX --- */
.search-box { 
    padding: 6px 15px 6px 35px !important; 
    border-radius: 20px; 
    border: 1px solid rgba(255,255,255,0.3); 
    background-color: rgba(0,0,0,0.3) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23ffffff'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 456.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 12px center !important;
    background-size: 14px !important;
    color: white; 
    outline: none; 
    font-size: 12px; 
    transition: all 0.3s ease; 
    width: 180px; 
}
.search-box::placeholder { color: #ddd; }
.search-box:focus { 
    background-color: #ffffff !important; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23c5a059'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 456.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 12px center !important;
    color: #000000 !important; 
    width: 320px; 
    border-color: #c5a059; 
    max-width: 100%; 
}
.search-box:focus::placeholder { color: #888; }

#search-dropdown { position: absolute; top: 32px; right: 0; background: #fff; color: #333; width: 250px; max-width: 90vw; max-height: 300px; overflow-y: auto; border: 2px solid var(--accent-gold); border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); display: none; z-index: 2000; padding: 10px 0; text-align: left; }
#search-dropdown .sd-title { font-size: 10px; font-weight: bold; color: #888; text-transform: uppercase; padding: 0 10px 5px; border-bottom: 1px solid #eee; margin-bottom: 5px; }
#search-dropdown a { display: block; padding: 8px 10px; color: #333; text-decoration: none; font-size: 11px; font-weight: 600; }
#search-dropdown a:hover { background: #f9f9f9; color: var(--accent-gold); }

/* --- 4. HERO --- */
.hero { position: relative; height: calc(100vh - 80px) !important; width: 100%; margin: 0 !important; padding: 0 !important; overflow: hidden; background-color: #001f3f; }
.hero h1 { color: #fff; font-size: 32px; position: relative; z-index: 2; text-shadow: 2px 2px 5px rgba(0,0,0,0.7); text-align: center; line-height: 1.3; margin-bottom: 20px; }
.hero p { font-size: 15px; max-width: 800px; color: #eee; font-weight: 400; position: relative; z-index: 2; text-shadow: 1px 1px 4px rgba(0,0,0,0.8); text-align: center; }

#hero-movie { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
#hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) 98%, #001f3f 100%); z-index: 1; }

.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease-in-out; z-index: 0; }
.hero-slide.active { opacity: 1; z-index: 1; }

.hero-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.15); color: rgba(255,255,255,0.6); padding: 8px 12px; font-size: 16px; cursor: pointer; z-index: 10; border-radius: 4px; transition: 0.3s; user-select: none; }
.hero-nav-btn:hover { background: rgba(0,0,0,0.6); color: #fff; }
#hero-prev { left: 15px; }
#hero-next { right: 15px; }

.hero-dots-wrapper { position: absolute; bottom: 30px; width: 100%; display: flex; justify-content: center; align-items: center; z-index: 10; gap: 15px; }
.hero-dots { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; }
.hero-dot { cursor: pointer; height: 4px; width: 6px; background-color: rgba(255, 255, 255, 0.4); border-radius: 2px; transition: background-color 0.3s ease, transform 0.3s ease; }
.hero-dot:hover { background-color: rgba(255, 255, 255, 0.8); }
.hero-dot.active { background-color: var(--accent-gold); transform: scale(1.2); }   

@keyframes floatArtistic { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }

#hero-info-box { position: absolute; bottom: 80px; right: 5%; z-index: 10; text-align: right; background: transparent; padding: 10px; border: none; display: none; max-width: 450px; width: 90%; animation: floatArtistic 6s ease-in-out infinite; }
#hero-title { color: #fff; margin: 0 0 5px 0; font-size: 24px; text-align: right; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); font-variant: small-caps; text-transform: lowercase; letter-spacing: 2px; font-family: 'Playfair Display', serif; font-weight: 400; }
#hero-scope { color: rgba(255, 255, 255, 0.9); margin: 0 0 15px 0; font-size: 13px; text-align: right; line-height: 1.5; text-shadow: 1px 1px 5px rgba(0,0,0,0.9); letter-spacing: 0.5px; }
#hero-link { display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.05); color: #fff; padding: 8px 24px; text-decoration: none; border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.4); backdrop-filter: blur(5px); font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; transition: all 0.4s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
#hero-link:hover { background: rgba(197, 160, 89, 0.15); border-color: var(--accent-gold); color: var(--accent-gold); box-shadow: 0 0 20px rgba(197, 160, 89, 0.5); transform: translateY(-2px); }

.hero-animated-container { position:relative; z-index:3; display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; width:100%; overflow:hidden; padding:0 20px; margin-top:30px; pointer-events: none;}
.hero-animate-line { opacity:0; text-align:center; text-shadow:2px 2px 8px rgba(0,0,0,0.9); will-change:transform, opacity; animation:slideLeftToRight 15s infinite cubic-bezier(0.25,0.8,0.25,1); }
.hero-l1 { font-size:36px; font-variant:small-caps; font-weight:bold; color:#fff; margin-bottom:5px; animation-delay:0s; }
.hero-l2 { font-size:22px; font-weight:400; color:rgba(255,255,255,0.9); margin-bottom:25px; animation-delay:1.5s; border-bottom:none; text-transform:none; }
.hero-l3 { font-size:15px; max-width:800px; color:#eee; font-weight:400; line-height:1.6; animation-delay:3s; }
@keyframes slideLeftToRight { 0%{opacity:0; transform:translateX(-100vw);} 15%, 75%{opacity:1; transform:translateX(0);} 90%, 100%{opacity:0; transform:translateX(100vw);} }

/* --- LOADER --- */
#loader-curtain{position:fixed;top:0;left:0;width:100%;height:100%;background:#0a0a0a;z-index:999999;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:opacity .6s ease}
.loader-text{color:#4CAF50;font-family:'Montserrat',sans-serif;font-size:16px;font-weight:600;letter-spacing:6px;margin-bottom:30px;text-transform:uppercase;animation:pulseText 1.5s infinite alternate}
.thick-spinner{width:60px;height:60px;border:12px solid #333;border-top-color:#4CAF50;border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulseText{0%{opacity:.5}to{opacity:1}}

/* --- ABOUT FULL SECTION --- */
.about-full-section { 
    background-color: #ffffff !important;
    padding: 0 !important; 
    margin-top: 0; 
    margin-bottom: 0; 
    width: 100vw; 
    max-width: 100%;
    overflow: hidden; 
    display: flex;
    align-items: stretch;
}

.about-full-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr;
    gap: 0; 
    align-items: stretch;
    width: 100%; 
    max-width: 100%; 
    margin: 0; 
    padding: 0; 
    background: transparent !important; 
}

.about-full-text { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    gap: 15px; 
    padding: 20px 40px 100px 20px; 
    height: 100%; 
    width: 100%;
    max-width: 600px; 
    margin-left: auto; 
    margin-right: 0; 
}

.about-full-text h2 { 
    color: #000; 
    font-family: 'Playfair Display', serif; 
    font-size: clamp(24px, 3vw, 36px); 
    border-bottom: 5px solid var(--accent-gold) !important; 
    display: inline-block; 
    padding-bottom: 10px; 
    margin: 0 0 15px 0; 
    font-weight: 700; 
    text-transform: none; 
}

.about-full-text p { 
    font-family: 'Montserrat', sans-serif; 
    font-size: clamp(13px, 1.2vw, 16px); 
    line-height: 1.6; 
    color: #333; 
    margin: 0; 
    text-align: justify; 
}

.about-full-text strong { font-weight: 800; color: #000; }

.about-full-img { width: 100%; height: 100%; overflow: hidden; border-radius: 0; padding: 0; margin: 0; box-shadow: none; }
.about-full-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Ensure mobile stacking looks perfect */
@media (max-width: 950px) {
    .about-full-text { max-width: 100%; margin: 0 auto; padding: 40px 20px; }
}

/* --- BOARD MODAL --- */
.board-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); backdrop-filter: blur(5px); z-index: 999999; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity .4s ease; }
.board-modal-overlay.active { opacity: 1; }
.board-modal-content { background: #f9f9f9; width: 95%; max-width: 900px; max-height: 90vh; overflow-y: auto; border-radius: 4px; padding: 50px 40px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,.5); transform: translateY(-30px); transition: transform .4s ease; font-family: 'Segoe UI', sans-serif; }
.board-modal-overlay.active .board-modal-content { transform: translateY(0); }
.board-close-btn { position: absolute; top: 15px; right: 20px; font-size: 35px; color: #1a1a1a; background: none; border: none; cursor: pointer; transition: .3s; z-index: 10; }
.board-close-btn:hover { color: #c5a059; }
.team-center-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; }
.team-subtitle { display: block; text-align: center; font-size: .8rem; color: #888; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 5px; }
.team-title { text-align: center; font-size: 2.2rem; margin: 0 0 40px 0; color: #1a1a1a; font-family: 'Playfair Display', serif; font-weight: 700; border: none !important; }
.board-full-sheet { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.member-card { flex: 0 1 220px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.member-img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; border: 4px solid #fff; border-radius: 4px; margin-bottom: 12px; box-shadow: 0 8px 15px rgba(0,0,0,.1); transition: .3s; }
.member-card:hover .member-img { transform: translateY(-5px); border-color: #c5a059; }
.member-info { width: 100%; text-align: center; }
.member-name { margin: 0 0 4px 0; font-size: 1.1rem; color: #1a1a1a; font-weight: 700; text-align: center; width: 100%; }
.member-title { margin: 0; font-size: .85rem; color: #c5a059; font-weight: 600; text-transform: capitalize !important; text-align: center; width: 100%; }

/* --- MASTER CONTAINER DIVISIONS --- */
.master-container { width: 100%; max-width: 1200px; padding: 80px 20px; margin: 0 auto; font-family: sans-serif; font-variant: small-caps; color: #333; position: relative; }
.master-container::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; width: 100vw; background-color: #f9f9f9; background-image: radial-gradient(#d1d1d1 1px, transparent 1px); background-size: 24px 24px; z-index: -1; border-top: 1px solid #eaeaea; border-bottom: 1px solid #eaeaea; }
.golden-title { text-align: center; font-size: 3.2em; margin: 0 auto 50px auto; color: #000000 !important; font-weight: 400 !important; display: table !important; border-bottom: 4px solid #c5a059 !important; padding-bottom: 10px; position: relative; text-transform: uppercase; letter-spacing: 2px; }
.golden-title::after { display: none !important; }
.six-tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; width: 100%; }

.tile-item { display: flex; flex-direction: column; text-decoration: none; background: transparent; border: none; }
.tile-item:hover { transform: none; }
.tile-title { width: 100%; text-align: center; font-size: clamp(13px, 1.4vw, 18px); color: #07050f; font-weight: bold; margin: 0 0 12px 0; min-height: 55px; display: flex; align-items: flex-end; justify-content: center; line-height: 1.3; text-transform: none; }
.tile-img-box { width: 100%; aspect-ratio: 1/1; overflow: hidden; border: 2px solid #fff; background: #fff; border-radius: 4px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.tile-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- KEY PROJECTS WITH TEXTURE --- */
#kpsection { position: relative; padding: 60px 0; margin-bottom: 0 !important; background-color: transparent !important; overflow: visible; }
#kpsection::before { content: '' !important; position: absolute !important; top: 0; bottom: 0; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; width: 100vw; background-color: #f9f9f9; background-image: radial-gradient(#d1d1d1 1px, transparent 1px); background-size: 24px 24px; z-index: -1; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.kp-outer { width: 100%; max-width: 1150px; margin: 0 auto; background: transparent !important; padding: 10px 0; position: relative; z-index: 1; }
#kpsection .golden-title { margin: 0 auto 30px auto; text-align: center; color: #1a1a1a !important; }
.kp-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding: 0 20px; }
.kp-b { background: #222; border: 1px solid #444; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 12px; }
.kp-b:hover { background: #c5a059; color: #000000; border-color: #c5a059; }
.kp-r { display: flex; overflow: hidden; margin-bottom: 12px; padding: 5px 15px; }
.kp-c { flex: 0 0 280px; margin-right: 25px; text-decoration: none; position: relative; height: 190px; border-radius: 12px; overflow: hidden; transition: all 0.4s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
.kp-c:hover { transform: translateY(-5px) scale(1.02); z-index: 2; box-shadow: 0 12px 25px rgba(197, 160, 89, 0.4); }
.kp-c img { width: 100%; height: 100%; object-fit: cover; }
.kp-i { position: absolute; bottom: 0; padding: 15px 12px; background: linear-gradient(transparent, rgba(0,0,0,0.95)); width: 100%; box-sizing: border-box; }
.kp-i h3 { margin: 0; font-size: 0.85rem; text-transform: uppercase; color: #fff !important; text-shadow: 1px 1px 2px #000; font-weight: 600; line-height: 1.2; }

/* --- ARCH PRODUCTS --- */
#arch-products-section { position: relative; padding: 80px 20px; margin-top: -1px !important; margin-bottom: 0 !important; }
#arch-products-section::before { content: ''; position: absolute; top: -1px; bottom: 0; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; width: 100vw; background-color: #fcfbfa; background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px); background-size: 30px 30px; z-index: -1; border: none !important; }
.arch-prod-h { text-align: center; font-family: 'Playfair Display', serif; font-size: 2.1rem; color: #1a1a1a; text-transform: uppercase; margin: 0 0 40px 0; border-bottom: 3px solid #c5a059; display: inline-block; padding-bottom: 5px; letter-spacing: 1px; }
.tiles-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; width: 100%; box-sizing: border-box; }
.arch-tile { background: #fff; border: 1px solid #eee; border-radius: 4px; overflow: hidden; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.arch-tile:hover { transform: none; border-color: #c5a059; box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.arch-img { width: 100%; height: 130px; overflow: hidden; background: #f9f9f9; }
.arch-img img { width: 100%; height: 100%; object-fit: cover; }
.arch-tile:hover img { transform: none; }
.arch-txt { padding: 10px 2px; font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600; color: #333; text-transform: uppercase; text-align: center; border-top: 1px solid #f0f0f0; }

/* --- MATERIALS SECTION --- */
#materials-section { position: relative; padding: 40px 0; margin-top: 0 !important; margin-bottom: 0 !important; border: none !important; overflow: visible; }
#materials-section::before { content: '' !important; position: absolute !important; top: 0; bottom: 0; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; width: 100vw; background-color: #3d3d3d !important; z-index: -1; }
.station-widget-frame { position: relative; width: 100%; min-height: 400px; background-color: #000; border: 1px solid #333; border-radius: 4px; overflow: hidden; color: #fff; animation: float 6s ease-in-out infinite; font-family: 'Montserrat', sans-serif; }
.st-slide { min-width: 100%; height: 100%; display: grid; grid-template-columns: 40% 60%; align-items: stretch; }
.st-panel-left { background: linear-gradient(135deg, #111 0%, #000 100%); display: flex; flex-direction: column; justify-content: center; padding: 40px; border-right: 1px solid #222; text-align: right; }
.st-panel-right { background-color: #111; padding: 50px; display: flex; align-items: center; }
.st-title { font-size: 1.4rem; font-weight: 700; line-height: 1.3; color: #fff; }
.st-list { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.st-list li { font-size: 1.0rem; line-height: 1.2; color: #ccc; position: relative; padding-left: 20px; text-align: left; }
.st-list li::before { content: "■"; color: #f39c12; font-size: 0.8rem; position: absolute; left: 0; top: 4px; }
.st-track { display: flex; width: 100%; height: auto; transition: transform 2.5s cubic-bezier(0.25, 1, 0.5, 1); }
.st-highlight { color: #f39c12; }
.st-controls-bar { position: absolute; bottom: 10px; right: 20px; display: flex; align-items: center; gap: 12px; z-index: 10; background: rgba(0,0,0,0.7); padding: 6px 12px; border-radius: 20px; border: 1px solid #333; }
.st-dot { width: 8px; height: 8px; background-color: #666; border-radius: 50%; cursor: pointer; transition: all 0.3s; }
.st-dot:hover { background-color: #999; }
.st-dot.active { background-color: #f39c12; transform: scale(1.3); }
.st-pause-btn { background: none; border: none; color: #888; font-size: 10px; cursor: pointer; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; transition: color 0.3s; margin-left: 5px; }
.st-pause-btn:hover { color: #fff; }

/* --- CONTRACTOR SECTION --- */
#contractor-section { position: relative; padding: 0 0 50px 0; margin-top: -1px !important; margin-bottom: 0 !important; width: 100%; background-color: #202d38 !important; }
#contractor-section::before { content: ''; position: absolute; top: -2px; bottom: -1px; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; width: 100vw; background-color: #202d38 !important; z-index: -1; border-top: none !important; }
.contractor-header { width: 100%; text-align: center; padding: 40px 20px 30px 20px; }
.contractor-header h2 { color: #f3f3f3; font-family: 'Playfair Display', serif; font-size: clamp(26px, 3.5vw, 36px); border-bottom: 3px solid var(--accent-gold, #c5a059); display: inline-block; padding-bottom: 8px; margin: 0; font-weight: 700; text-transform: none; }
.contractor-full-grid { display: grid; grid-template-columns: 4fr 6fr; gap: 40px; align-items: stretch; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: transparent !important; }
.contractor-full-img { width: 100%; height: 100%; min-height: 0; }
.contractor-full-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.contractor-full-text { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 0; }
.contractor-full-text p { font-family: 'Montserrat', sans-serif; font-size: clamp(14px, 1.3vw, 16px); line-height: 1.7; color: #eaeaea; margin: 0; text-align: justify; }
.contractor-full-text .c-hi { border-left: 3px solid #b8964d; padding-left: 18px; margin: 5px 0; }
.contractor-full-text .c-hi p { color: #b3b16c; font-weight: 600; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6; }

/* --- APPROACH SECTION --- */
#approach-section::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; width: 100vw; background-color: rgba(255, 255, 255, 0.85); z-index: -1; }
.st-head { text-align: center; letter-spacing: 2px; margin: 0 auto 40px auto; font-size: 1.1rem; font-weight: 400; display: block; width: 100%; text-transform: none !important; font-variant: normal !important; border: none !important; text-decoration: none !important; }
.st-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:40px;margin-bottom:25px; align-items: stretch;}
.st-col{text-align:center; perspective: 1000px; display: flex; flex-direction: column;}
.st-icon{ width: 85px; height: 85px; object-fit: contain; margin: 0 auto 20px; display: block; transition: .3s; filter: brightness(2.0) drop-shadow(0 4px 6px rgba(0,0,0,0.15)); }
.st-col:hover .st-icon{ transform: scale(1.15); filter: brightness(2.5) drop-shadow(0 8px 15px rgba(184, 150, 77, 0.4)); }
.st-col h3{ font-size:1.1rem; margin-bottom:15px; color:#b8964d; letter-spacing:.5px; font-weight:600; text-transform: none !important; font-variant: normal !important; }
.st-p{ text-align:justify; font-size:0.95rem; color:#444; margin:0; line-height:2.2; flex-grow: 1; text-transform: none !important; font-variant: normal !important; }

/* --- DEPENDABLE SECTION --- */
#dependable-section { position: relative; min-height: 35vh; display: flex; align-items: center; padding: 60px 20px; margin-top: -1px !important; margin-bottom: 0 !important; font-family: 'Montserrat', sans-serif; }
#dependable-section::before { content: ''; position: absolute; top: -1px; bottom: -1px; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; width: 100vw; background-color: #3a3a3a; z-index: -1; border: none !important; }
.dep-container { max-width: 1200px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
.dep-left { font-size: 40px; font-weight: 900; line-height: 1.1; color: #b8964d; text-transform: uppercase; letter-spacing: -1px; text-align: right; }
.dep-right { border-left: 3px solid #b8964d; padding-left: 40px; }
.dep-right p { font-size: 1rem; color: #eaeaea; line-height: 2; text-align: justify; margin: 0; }

/* --- INFINITE STATS SECTION --- */
#infinite-stats-section::before { content:''; position:absolute; top:0; bottom:0; left:50%; width:100vw; transform:translateX(-50%); background:#dfbd22; z-index:-1; }
.st-grid-stats { display:grid; grid-template-columns:repeat(4,1fr); width:100%; max-width:1200px; margin:0 auto; }
.st-stat-box:last-child { border-right:none; }
.st-num-large { font-size: 55px !important; font-weight: 800 !important; color: #1a3826; display: block; line-height: 1; }
.st-lbl-small { font-size: 22px !important; font-weight: 600 !important; color: #1a3826; margin-top: 10px; line-height: 1.2; text-transform: uppercase; }
.st-stat-box { text-align: center; border-right: 2px solid rgba(26, 56, 38, 0.4) !important; }        

/* --- CLIENTS SECTION --- */
#clients-section { margin-top: 0 !important; margin-bottom: 0 !important; border: none !important; }
#clients-section::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; width: 100vw; background-color: rgba(255, 255, 255, 0.85); z-index: -1; border: none !important; box-shadow: none !important; }
.cl-h{font:300 1.1rem 'Montserrat',sans-serif;text-transform:uppercase;letter-spacing:2px;margin-bottom:12px;color:#111; border-bottom: none !important;}
.cl-h::after{content:'';display:block;width:30px;height:2px;background:#b8964d;margin:5px auto}
.cl-tiles{display:grid;grid-template-columns:repeat(13,1fr);gap:4px}
.cl-t{aspect-ratio:1;display:flex;align-items:center;justify-content:center;position:relative}
.cl-aura{position:absolute;inset:0;background:radial-gradient(circle,rgba(184,150,77,0.2),transparent 70%);opacity:0}
.cl-t img{max-width:90%;max-height:90%;transform:scale(0.8);position:relative}

/* --- PRESENCE & MAP --- */
.presence-map-grid { display: grid; grid-template-columns: 30% 70%; gap: 30px; margin-top: 20px; align-items: stretch; }
.branch-item { margin-bottom: 15px; }
.branch-item h4 { color: var(--accent-gold); margin-bottom: 5px; font-size: 18px; }
.branch-item p { font-size: 15px !important; line-height: 1.5; color: #333; }
.address-list .branch-item h4 { text-transform: none !important; font-variant: small-caps !important; font-weight: 600 !important; font-size: 20px !important; color: #c5a059 !important; display: inline-block; }
.address-list .branch-item h4::first-letter { text-transform: uppercase !important; }
.map-container { width: 100%; height: 60vh !important; min-height: 500px !important; border: none !important; padding: 0 !important; background: transparent !important; overflow: hidden; }
.map-container iframe { pointer-events: none; }
.map-container.clicked iframe { pointer-events: auto; }

/* --- LINKEDIN SECTION --- */
#linkedin-section { width: 100%; display: flex; flex-direction: column; align-items: center; background: transparent; padding-top: 40px; }
.section-title { font-size: 2.5rem; font-weight: bold; color: #333; margin-bottom: 5px; text-transform: none !important; font-variant: normal !important; }
.linkedin-background-banner { width: 100%; height: 400px; background-color: #ffffff; display: flex; justify-content: center; }
.linkedin-content-limit { width: 100%; max-width: 1200px; height: 100%; background-image: url('image/linkedIn.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; display: flex; justify-content: center; align-items: center; }
.linkedin-btn { display: inline-block; padding: 15px 45px; background-color: #0077b5; color: white; text-decoration: none; font-weight: bold; border-radius: 4px; transition: 0.3s; }

/* --- CONTACT FOOTER OVERRIDES --- */
#contact-footer { margin-top: 0 !important; margin-bottom: 0 !important; border: none !important; background: transparent !important; opacity: 1 !important; }
#contact-footer::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; width: 100vw; background-color: rgba(248, 243, 243, 0.95); z-index: -1; border: none !important; box-shadow: none !important; }
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:40px; line-height:1.6; }
.station-input { width: 100%; background: #ffffff; border: 1px solid #ddd; padding: 8px 10px; margin-top: 4px; outline: none; border-radius: 2px; box-sizing: border-box; font-size: 12px; font-family: 'Montserrat', sans-serif; transition: border-color 0.3s ease; }
.station-input:focus { border-color: #b8964d; }
.form-label { font-size: 12px; color: #777; font-weight: bold; letter-spacing: 0.5px; }

/* --- GLOBAL GAP KILLER & FROSTED OVERLAY OVERRIDES --- */
div#divisions-section::before, 
section#kpsection::before, 
section#arch-products-section::before, 
section#approach-section::before, 
section#clients-section::before, 
section#presence-section::before { 
    content: '' !important; 
    position: absolute !important; 
    background-color: rgba(223, 230, 237, 0.85) !important; 
    backdrop-filter: blur(6px) !important; 
    -webkit-backdrop-filter: blur(6px) !important; 
    top: -2px !important; 
    bottom: -2px !important; 
    left: 50%; 
    right: 50%; 
    margin-left: -50vw; 
    margin-right: -50vw; 
    width: 100vw; 
    z-index: -1 !important; 
}

/* KEEP THESE IMPORTANT RESETS */
section, div { margin-top: 0 !important; margin-bottom: 0 !important; }
#presence-section { padding-top: 100px !important; }
h2.presence-main-h { margin-top: 0 !important; padding-top: 0 !important; }

.golden-title, #arch-products-section h2.arch-prod-h, h2.presence-main-h, h2.cl-h { font-family: 'Montserrat', sans-serif !important; color: #1c2833 !important; font-size: clamp(24px, 3.2vw, 42px) !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 2px !important; position: relative !important; display: block !important; width: 100% !important; text-align: left !important; margin-bottom: 40px !important; padding-bottom: 20px !important; border: none !important; }
h2.cl-h { display: inline-block !important; width: auto !important; }

#contact-footer, #visitor-section { position: relative !important; background-color: #ffffff !important; background-image: none !important; margin: 0 !important; padding: 60px 0; overflow: visible !important; }
#contact-footer::before, #visitor-section::before { content: '' !important; position: absolute !important; top: 0 !important; bottom: 0 !important; left: 50% !important; right: 50% !important; margin-left: -50vw !important; margin-right: -50vw !important; width: 100vw !important; background-color: #ffffff !important; background-image: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; z-index: -1 !important; border: none !important; box-shadow: none !important; opacity: 1 !important; }
.contact-grid { background-color: transparent !important; position: relative !important; z-index: 1 !important; }

/* --- UNIVERSAL SCROLL-TRIGGERED LINE ANIMATION --- */
.golden-title::after, .arch-prod-h::after, .presence-main-h::after, h2::after, .golden-title::before { display: none !important; content: none !important; }
.animate-line { position: relative !important; display: table !important; margin: 0 auto 40px auto !important; text-align: center !important; width: auto !important; }
.animate-line::after { content: "" !important; display: block !important; position: absolute !important; bottom: -10px !important; height: 6px !important; background-color: #eab308 !important; left: calc(-50vw + 50%) !important; width: 0 !important; opacity: 1 !important; visibility: visible !important; transition: width 2.2s cubic-bezier(0.22, 1, 0.36, 1) !important; z-index: 100 !important; }
.animate-line.is-visible::after { width: calc(50vw + 550px) !important; }

#arch-products-section h2.arch-prod-h.animate-line::after, #presence-section h2.presence-main-h.animate-line::after { content: "" !important; display: block !important; position: absolute !important; bottom: -10px !important; height: 6px !important; background-color: #eab308 !important; left: calc(-50vw + 50%) !important; width: 0 !important; transition: width 2.2s cubic-bezier(0.22, 1, 0.36, 1) !important; z-index: 100 !important; visibility: visible !important; }
#arch-products-section h2.arch-prod-h.is-visible::after, #presence-section h2.presence-main-h.is-visible::after { width: calc(50vw + 570px) !important; }

/* ==========================================================================
   STATION GROUP - PREMIUM 4-COLUMN FOOTER STYLES
   ========================================================================== */

footer {
    background-color: var(--primary-blue) !important; 
    color: #ffffff;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.8fr 0.7fr 1fr 1.5fr; 
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 30px 20px; 
    align-items: start;
}

.footer-column h3, 
.footer-logo-side h3 {
    color: var(--accent-gold); 
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    font-weight: 700;
    border: none !important; 
}

.footer-logo-side p {
    color: #bbb;
    font-size: 13px;
    line-height: 1.6;
    text-align: justify;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 10px; 
    display: flex;
    align-items: center;
}

.footer-links li a {
    color: #bbb;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: normal;
}

.footer-links li.no-wrap-link a { white-space: nowrap !important; }
.footer-links li a:hover { color: var(--accent-gold); padding-left: 8px; }

.contact-inline { display: flex; align-items: center; gap: 20px; color: #bbb; font-size: 13px; flex-wrap: wrap; margin-top: 5px; }
.contact-inline span { display: flex; align-items: center; gap: 8px; }
.contact-inline i { color: var(--accent-gold); font-size: 14px; }

.accred-container { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.footer-cert-img { height: 40px; border-radius: 2px; background: #fff; padding: 2px; transition: all 0.3s ease; }
.footer-cert-img:hover { transform: scale(1.1); }

.social-wrapper { display: flex; gap: 12px; margin-top: 15px; }
.social-btn { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 16px; transition: all 0.3s ease; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.1); }
.social-btn:hover { background-color: var(--accent-gold); color: var(--primary-blue); transform: translateY(-3px); border-color: var(--accent-gold); }

.footer-bottom { background: #0d121d; padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #777; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-visitor-center { color: #888; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
#footer-visitor-count { color: var(--accent-gold); font-family: 'Courier New', monospace; font-size: 14px; margin-left: 8px; letter-spacing: 2px; }

/* ==========================================================================
   SUB-PAGE & ARCHITECTURAL SPECIFIC STYLES
   ========================================================================== */

/* --- Content Wrappers & Titles --- */
.sticky-page-title { position: -webkit-sticky; position: sticky !important; top: 80px; background-color: transparent; z-index: 1000; padding: 0; margin: 0; width: 100%; text-align: center; }
.div-wrapper { padding: 25px; background: transparent; position: relative; border: none; border-radius: 0; box-shadow: none; margin-bottom: 20px; }
.div-h1 { color: var(--primary-black); font-size: 14px; font-weight: 800; text-transform: uppercase; margin-top: 25px; margin-bottom: 8px; border-bottom: 1px solid #ddd; padding-bottom: 4px; clear: both; }
.div-h2 { font-size: 12px; font-weight: 700; margin-top: 15px; margin-bottom: 5px; text-transform: uppercase; }
.div-h2.gold { color: var(--accent-gold); }
.motto-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e0e0e0; margin: 20px 0 10px 0; padding-bottom: 8px; clear: both; flex-wrap: wrap; gap: 10px; }
.motto-text { font-weight: 700; text-transform: uppercase; color: var(--primary-black); font-size: 12px; letter-spacing: 0.5px; }
.brand-blue{color:#0056b3;font-weight:800} .brand-gold{color:#c5a059;font-weight:800}
ul.div-list { list-style: none; padding-left: 0; margin-bottom: 10px; }
ul.div-list li { position: relative; padding-left: 18px; margin-bottom: 4px; }
ul.div-list li::before { content: "▪"; color: var(--accent-gold); font-weight:bold; position: absolute; left: 0; top: 0; }
.info-box-wrap { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
.info-box { background: transparent; border: 1px solid #eee; border-left: 3px solid #c5a059; padding: 12px 15px; line-height: 1.5; border-radius: 0 4px 4px 0; }

/* --- Sidebar Layout --- */
.page-container { max-width: 1350px; margin: 0 auto; padding: 10px 20px 50px 20px; }
.content-grid { display: flex; flex-direction: row; gap: 30px; align-items: flex-start; margin-top: 0; position: relative; }
.modern-sidebar { flex: 0 0 280px; position: -webkit-sticky; position: sticky !important; top: 160px; height: max-content; overflow: visible !important; padding: 10px 0; border-right: 2px solid #eaeaea; z-index: 100; }
.main-content { flex: 1; min-width: 0; }
.nav-list { list-style: none; padding: 0; margin: 0; text-align: right; }
.nav-item { position: relative; padding: 12px 25px 12px 0; cursor: pointer; }
.nav-item::before { content: ''; position: absolute; right: -2px; top: 0; height: 100%; width: 2px; background-color: #d5d5d5; transform: scaleY(1); transition: background-color 0.3s ease; }
.nav-item::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; border-radius: 50%; background-color: #d5d5d5; transition: background-color 0.3s ease, box-shadow 0.3s ease; z-index: 2; }
.nav-item:hover::before, .nav-item.active::before { background-color: var(--primary-blue); }
.nav-item:hover::after, .nav-item.active::after { background-color: var(--primary-blue); box-shadow: 0 0 10px 3px rgba(20, 27, 45, 0.3); }
.nav-item:hover a, .nav-item.active a { color: var(--primary-blue); }
.nav-item a { text-decoration: none; font-size: 14px; font-weight: 600; color: #777; display: block; white-space: nowrap; transition: color 0.3s ease; }

/* --- Buttons & Videos --- */
.portfolio-link-btn { display: inline-flex; align-items: center; gap: 10px; background-color: transparent; color: var(--primary-black); border: 1px solid var(--primary-black); padding: 10px 20px; text-decoration: none; border-radius: 4px; font-weight: bold; font-size: 12px; text-transform: uppercase; transition: all 0.3s ease; margin: 15px 0; position: relative; overflow: hidden; z-index: 1; }
.portfolio-link-btn::before { content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%; background: var(--accent-gold); transition: all 0.4s ease; z-index: -1; }
.portfolio-link-btn:hover { color: #fff; border-color: var(--accent-gold); box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3); }
.portfolio-link-btn:hover::before { width: 100%; }
.video-btn { background: transparent; border: 1px solid #ccc; padding: 4px 10px; cursor: pointer; font-size: 11px; }
.video-btn:hover { background: transparent; }
.video-btn.playing { background: var(--accent-gold); color: white; border-color: var(--accent-gold); }
.video-box { background: #000; overflow: hidden; max-height: 0; opacity: 0; margin-top: 0; transition: all 0.6s ease-in-out; border-radius: 2px; }
.video-box.active { max-height: 600px; opacity: 1; margin-top: 12px; margin-bottom: 5px; }
.video-50-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.video-container-wrap { display: flex; flex-direction: column; }
.video-title-label { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; color: #1a1a1a; letter-spacing: 0.5px; line-height: 1.3; min-height: 32px; }
.video-responsive-wrap { position: relative; padding-bottom: 56.25%; height: 0; background: #000; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.video-responsive-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* --- Grids & Galleries --- */
.grc-image-grid, .gallery-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin: 30px 0; width: 100%; }
.grc-image-grid img, .gallery-2 img { width: 100%; height: 400px; object-fit: cover; border-radius: 4px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #eee; transition: transform 0.3s ease, border-color 0.3s ease; cursor: zoom-in; }
.grc-image-grid img:hover, .gallery-2 img:hover { transform: translateY(-5px) scale(1.02); border-color: var(--accent-gold); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; background: transparent; padding: 15px; border: none; margin-top: 15px; }
.feature-box { background: transparent; padding: 10px; border: 1px solid #eee; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.gallery-grid.large { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-img { width: 100%; height: 250px; object-fit: cover; border: 1px solid #eee; cursor: pointer; transition: transform 0.2s; display: block; transform-origin: top left; border-radius: 4px; }
.gallery-img:hover { transform: scale(1.05); border-color: var(--accent-gold); }
.global-modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); justify-content: center; align-items: center; flex-direction: column; }
.global-modal-img { max-width: 90%; max-height: 85%; border: 2px solid #fff; box-shadow: 0 0 20px #000; transition: transform 0.3s ease; cursor: zoom-in; transform-origin: top left; }
.global-modal-img.zoomed { transform: scale(1.75); cursor: zoom-out; }
.artistic-index-container { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; padding: 20px; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
.index-item { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: #333; padding: 15px; border-top: 2px solid #eee; transition: all 0.3s ease; position: relative; }
.index-item:hover { border-top-color: #007bff; background: transparent; transform: translateY(-3px); }
.index-num { font-weight: bold; font-size: 0.8em; color: #999; }
.index-text { font-size: 0.85em; font-weight: 500; line-height: 1.3; }
.tech-spec-table { width: auto; min-width: 350px; max-width: 600px; border-collapse: collapse; margin-top: 15px; font-size: 13px; background: transparent; text-align: left; }
.tech-spec-table td { padding: 25px 15px 25px 0; vertical-align: top; }
.thickness-sub-list { list-style: none; padding: 0; margin: 0; }
.thickness-sub-list li { display: flex; gap: 30px; padding: 4px 0; border-bottom: 1px dashed #ddd; }
.thickness-sub-list li:last-child { border-bottom: none; }
.factory-landscape-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; padding-top: 15px; border-top: 1px solid #eee; }
.factory-landscape-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; border: 1px solid #eee; cursor: zoom-in; transition: transform 0.3s ease, border-color 0.3s ease; display: block; transform-origin: center; }
.factory-landscape-img:hover { transform: scale(1.05); border-color: var(--accent-gold, #c5a059); }


/* ==========================================================================
   MOBILE RESPONSIVENESS OVERFLOW FIXES & CLEAN MENU
   ========================================================================== */

@media (max-width: 1200px) {
    .animate-line.is-visible::after { width: calc(50vw + 42%) !important; }
}

@media (max-width: 1150px) {
    /* Mobile Header Top Row */
    header { height: auto !important; padding: 10px 0 !important; position: fixed !important; }
    .header-content { display: flex !important; flex-direction: row !important; justify-content: space-between !important; align-items: center !important; padding: 0 15px !important; }
    .brand-name { flex: 1 1 auto; min-width: 0; overflow: hidden; }
    .brand-name img { height: 40px !important; margin: 0 !important; flex-shrink: 0; }
    
    /* Search Bar Top Right */
    .search-container { margin: 0 15px 0 auto !important; position: relative !important; order: 2; flex-shrink: 0; z-index: 999999 !important; }
    .search-box { width: 110px !important; min-width: 110px !important; padding: 6px 12px; font-size: 11px; flex-shrink: 0; }
    .search-box:focus { width: 220px !important; min-width: 220px !important; position: absolute; right: 0; z-index: 20000; }
    
    /* Hamburger Far Right */
    .hamburger { display: flex; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; cursor: pointer; z-index: 10001; order: 3; }
    .hamburger span { display: block; height: 3px; width: 100%; background-color: #fff; border-radius: 3px; transition: all 0.3s ease-in-out; }
    .hamburger.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

    #site-search, .search-box { 
        pointer-events: auto !important; 
        -webkit-user-select: text !important; 
        user-select: text !important; 
        -webkit-appearance: none !important; 
        appearance: none !important; /* Standard appearance property added */
        -webkit-touch-callout: default !important; 
        touch-action: manipulation !important; 
    }
    #search-dropdown { z-index: 999999 !important; }

    /* Clean Mobile Dropdown Panel */
    nav#nav-menu { display: none !important; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--primary-blue); padding: 20px 30px !important; border-top: 1px solid rgba(255,255,255,0.05); box-shadow: 0 15px 25px rgba(0,0,0,0.5); z-index: 10000; margin-top: 0 !important; }
    nav#nav-menu.active { display: flex !important; flex-direction: column !important; }
    
    .menu { flex-direction: column !important; align-items: flex-start !important; width: 100%; gap: 10px !important; padding: 0 !important; }
    .menu > li { width: 100%; padding: 0 !important; border: none !important; }
    .menu > li > a { display: flex; justify-content: flex-start; align-items: center; width: 100%; font-size: 14px !important; color: #ffffff !important; padding: 8px 0 !important; border: none !important; font-weight: 700; text-shadow: none; gap: 8px; }
    .menu > li > a i { color: var(--accent-gold) !important; font-size: 16px !important; padding-right: 15px; }
    
    .dropdown { position: static !important; display: none !important; background-color: transparent !important; border: none !important; box-shadow: none !important; padding-left: 15px !important; margin-top: 5px; width: 100%; }
    .has-dropdown.open > .dropdown { display: block !important; }
    .has-dropdown.open > a { color: var(--accent-gold) !important; } 
    .has-dropdown.open > a i { transform: rotate(180deg); transition: transform 0.3s ease;}
    
    .dropdown li { width: 100%; padding: 0 !important; border: none !important; }
    .dropdown li a { color: #e0e0e0 !important; border: none !important; padding: 8px 0 !important; font-size: 12px !important; text-transform: uppercase !important; display: block; width: 100%; }
    .dropdown li a:hover { color: var(--accent-gold) !important; background: transparent; }
    
    body { padding-top: 0 !important; }
    
    .hero { margin-top: 0 !important; padding-top: 80px !important; background-color: var(--primary-blue); }
    .sticky-page-title { margin-top: 0 !important; top: 60px !important; position: relative !important; }
    
    .animate-line { display: block !important; width: 100% !important; margin: 0 auto 30px auto !important; }
    .animate-line::after, #arch-products-section h2.arch-prod-h.animate-line::after, #presence-section h2.presence-main-h.animate-line::after { left: 5% !important; width: 0 !important; transition: width 1.5s ease-out !important; }
    .animate-line.is-visible::after, #arch-products-section h2.arch-prod-h.is-visible::after, #presence-section h2.presence-main-h.is-visible::after { width: 90% !important; }
    
    .grid-2, .about-grid, .presence-map-grid, .about-full-grid { grid-template-columns: 1fr !important; }
    .img-left, .img-right { float: none; width: 100%; max-width: 100%; margin: 0 auto 15px auto; }
    .gallery-grid.large { grid-template-columns: repeat(2, 1fr); }
    .tabs-nav { overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; justify-content: flex-start; }
    .tab-link { flex: 0 0 auto; }
    .division-layout { flex-direction: column; }
    .division-img { flex: none; width: 100%; max-width: 100%; margin: 0 auto; }
    .division-img img { transform-origin: center; }
    .station-widget-frame { height: auto; min-height: 450px; }
    .st-slide { grid-template-columns: 1fr; grid-template-rows: auto auto; padding-bottom: 50px; }
    .st-panel-left { text-align: left; padding: 20px; border-right: none; border-bottom: 1px solid #222; }
    .st-list { grid-template-columns: 1fr; gap: 8px; } 
    .st-title { font-size: 1.3rem; }
    .st-controls-bar { right: 50%; transform: translateX(50%); bottom: 10px; }
    .facade-layout { flex-direction: column; }
    .facade-img-box { max-width: 100%; margin: 0 auto; }
    .hero h1 { font-size: 24px; line-height: 1.4; padding: 0 10px; margin-top: 60px;}
    .hero p { font-size: 12px; padding: 0 10px; }
    .hero-nav-btn { padding: 5px 8px; font-size: 12px; }
    #hero-info-box { right: 5%; left: auto; bottom: 60px; text-align: right; max-width: 90%; }
    .contractor-header { padding: 30px 20px 20px; }
    .contractor-full-grid { grid-template-columns: 1fr; gap: 25px; } 
    .contractor-full-img img { height: auto; aspect-ratio: 16/9; } 
    .map-container { height: 400px !important; }

    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-links li.no-wrap-link a { white-space: normal !important; }
    .video-50-grid { grid-template-columns: 1fr; gap: 25px; } 
    .video-title-label { min-height: auto; }
}

@media (max-width: 1024px) { 
    .tiles-grid { grid-template-columns: repeat(3, 1fr); } 
}

/* --- NEW BREAKPOINT: Moves Sidebar to Top ONLY on Tablets/Phones (Fixes Desktop!) --- */
@media (max-width: 850px) {
    .content-grid { flex-direction: column; gap: 40px; }
    .modern-sidebar { border-right: none; border-bottom: 2px solid #eaeaea; padding: 0 0 20px 0; position: relative !important; top: 0 !important; width: 100%; z-index: 1; }
    .nav-list { text-align: left; display: flex; flex-wrap: wrap; gap: 15px; }
    .nav-item { padding: 5px 15px 5px 0; }
    .nav-item::before, .nav-item::after { display: none; }
    .grc-image-grid, .gallery-2 { grid-template-columns: 1fr; gap: 20px; }
    .grc-image-grid img, .gallery-2 img { height: 300px; }
}

@media (max-width: 900px) { 
    .cl-tiles { grid-template-columns: repeat(7, 1fr); }
    .artistic-index-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 10px; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-links li { justify-content: center; }
    .contact-inline { justify-content: center; }
    .accred-container, .social-wrapper { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .six-tile-grid { grid-template-columns: repeat(2, 1fr); gap: 15px;} 
    .tile-title { font-size: 13px; min-height: 45px;}
    .golden-title { font-size: 2.2em; } 
    .kp-outer { width: 100%; } 
    #kpsection { padding: 30px 0; }
    .kp-c { flex: 0 0 200px; height: 140px; } 
    .dep-container { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .dep-left { text-align: center; font-size: 34px; }
    .dep-right { border-left: none; border-top: 3px solid #b8964d; padding-left: 0; padding-top: 20px; }
    .dep-right p { text-align: left; }
    .st-grid-stats { grid-template-columns:repeat(2,1fr); row-gap:40px; } 
    .st-stat-box { border:none; } 
    .st-num-large { font-size: 35px; }
    .st-lbl-small { font-size: 16px; }
    .contact-grid { grid-template-columns: 1fr !important; } 
    .hero-l1 { font-size: 26px; } 
    .hero-l2 { font-size: 16px; margin-bottom: 15px; } 
    .hero-l3 { font-size: 12px; } 
}

@media (max-width: 600px) { 
    .tiles-grid { grid-template-columns: repeat(2, 1fr); } 
    #arch-products-section { padding: 40px 10px; margin: 30px auto; } 
}

@media (max-width: 500px) { 
    .artistic-index-container { grid-template-columns: 1fr; } 
    .factory-landscape-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .brand-name img { height: 35px !important; }
    .menu > li > a { font-size: 10px !important; letter-spacing: 0 !important; }
    .brand-name { font-size: clamp(10px, 3vw, 13px) !important; gap: 5px; white-space: nowrap; } 
    .gallery-grid.large { grid-template-columns: 1fr; }
    .hero h1 { font-size: 20px; }
    .cl-tiles { grid-template-columns: repeat(4, 1fr); }
    .search-box { width: 90px !important; min-width: 90px !important; }
    .search-box:focus { width: 200px !important; min-width: 200px !important; }
}

@keyframes safeTouch { 0% { pointer-events: none; opacity: 0; } 50% { pointer-events: none; opacity: 1; } 100% { pointer-events: auto; opacity: 1; } }

/* --- HIGHLIGHT CURRENT PAGE IN DROPDOWNS --- */
.dropdown li a.active-page { color: var(--accent-gold) !important; font-weight: 800 !important; background-color: #fcfcfc; }
.menu > li.has-dropdown:has(a.active-page) > a.dropdown-toggle, .menu > li.has-dropdown:has(a.active-page) > a.dropdown-toggle i { color: var(--accent-gold) !important; }

/* --- KEY PROJECTS SPACING OVERRIDES --- */
#kpsection { padding-top: 20px !important; }
#kpsection .golden-title { padding-bottom: 10px !important; margin-bottom: 10px !important; }
.kp-outer { padding-top: 0 !important; }
.kp-h { padding-top: 15px !important; padding-bottom: 10px !important; }

/* --- FLAWLESS FULL-WIDTH PRINT PREVIEW OPTIMIZATION --- */
@media print {
    @page { size: A4 portrait; margin: 15mm; }
    * { box-sizing: border-box !important; word-wrap: break-word !important; }
    nav, .search-container, .idx-btn, .dropdown-container, #topBtn,
    .global-modal, .adv-modal, .control-panel, .multi-badge, .video-btn, 
    .portfolio-link-btn, .artistic-index-container,
    .left-grid, .special-video-section, #prod-videos, iframe, .video-box, .video-container { display: none !important; }
    html, body { padding-top: 0 !important; background: transparent !important; color: #000 !important; margin: 0 !important; overflow: visible !important; width: auto !important; max-width: 100% !important; }
    .container, .page-content-wrapper { max-width: 100% !important; padding: 0 !important; margin: 0 !important; width: auto !important; display: block !important; overflow: visible !important; }
    
    header, .station-sub-header { 
        position: relative !important; 
        height: auto !important; 
        padding: 10px 0 !important; 
        background-color: #141B2D !important; 
        print-color-adjust: exact !important; 
        page-break-after: avoid !important; 
        border-bottom: 2px solid var(--accent-gold) !important; 
        width: auto !important; 
    }
    
    .header-inner { justify-content: center !important; padding: 0 !important; } 
    
    .sub-brand-text, .maintitle { 
        color: #fff !important; 
        print-color-adjust: exact !important; 
    }
    
    .div-wrapper { border: 1px solid #ccc !important; box-shadow: none !important; margin-bottom: 20px !important; padding: 20px !important; display: block !important; width: auto !important; max-width: 100% !important; page-break-inside: auto !important; break-inside: auto !important; overflow: visible !important; }
    h1, h2, h3, .div-h1, .div-h2, .main-title { page-break-after: avoid !important; break-after: avoid !important; color: #000 !important; }
    .div-h1 { border-bottom: 2px solid #141B2D !important; color: #141B2D !important; }
    p { orphans: 3; widows: 3; color: #222 !important; word-wrap: break-word !important; max-width: 100% !important; overflow: visible !important; }
    ul, li { page-break-inside: avoid !important; break-inside: avoid !important; color: #222 !important; word-wrap: break-word !important;}
    .intro-flex-container { display: block !important; width: auto !important; max-width: 100% !important; min-height: 0 !important; overflow: visible !important; }
    .right-grid { flex: none !important; width: auto !important; max-width: 100% !important; display: block !important; padding: 0 !important; margin: 0 !important; box-sizing: border-box !important; overflow: visible !important; }
    .facade-text-container { width: auto !important; max-width: 100% !important; box-sizing: border-box !important; white-space: normal !important; overflow: visible !important; padding-right: 5px !important; }
    .info-box-wrap, .info-box { width: auto !important; max-width: 100% !important; box-sizing: border-box !important; overflow: visible !important; word-wrap: break-word !important; }
    .grc-image-grid, .gallery-grid, .gallery-2, .feature-grid { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: space-between !important; margin-top: 20px !important; width: 100% !important; gap: 0 !important; }
    .grc-image-grid img, .gallery-2 .gallery-item, .gallery-grid.large .gallery-img, .feature-box { display: block !important; width: 48% !important; flex: 0 0 48% !important; margin: 0 0 20px 0 !important; page-break-inside: avoid !important; break-inside: avoid !important; border: 1px solid #ddd !important; box-shadow: none !important; box-sizing: border-box !important; }
    .grc-image-grid img, .gallery-img { height: 250px !important; object-fit: cover !important; }
    .gallery-item img { width: 100% !important; height: 200px !important; object-fit: cover !important; display: block !important; border: none !important; border-bottom: 1px solid #ddd !important; }
    .gallery-item p, .caption-box { position: relative !important; transform: translateY(0) !important; background-color: transparent !important; color: #000 !important; padding: 10px !important; margin: 0 !important; text-align: center !important; border-top: 1px solid #ddd !important; }
    .caption-title { color: #000 !important; font-size: 13px !important; font-weight: 800 !important; margin-bottom: 5px !important; }
    .caption-desc { color: #333 !important; font-size: 11px !important; }
    .tech-spec-table { width: 100% !important; max-width: 100% !important; page-break-inside: avoid !important; box-sizing: border-box !important; }
    .factory-landscape-grid { display: block !important; width: 100% !important; font-size: 0 !important; }
    .factory-landscape-img { display: inline-block !important; width: 48% !important; margin: 0 4% 20px 0 !important; page-break-inside: avoid !important; box-sizing: border-box !important; }
    .factory-landscape-img:nth-child(even) { margin-right: 0 !important; }
}

/* --- Adjust Header Font Sizes --- */
.project-top-header h1 {
    font-size: 26px; /* Reduced from default */
    margin-bottom: 5px;
}
@media (max-width: 768px) {
    .project-top-header h1 {
        font-size: 20px; /* More legible on mobile */
    }
}

/* --- Project Status Colors --- */
.status-badge { font-weight: bold; padding: 4px 8px; border-radius: 4px; }
.status-awarded { color: #f39c12; background: rgba(243, 156, 18, 0.1); } /* Orange */
.status-on-hand { color: #8e44ad; background: rgba(142, 68, 173, 0.1); } /* Purple */
.status-completed { color: #27ae60; background: rgba(39, 174, 96, 0.1); } /* Green */

/* --- Image Navigation Adjustments --- */
.image-nav-btn {
    font-size: 1.2rem; /* Reduced size */
    padding: 8px 12px;
}

/* --- Video Jump Link --- */
.video-jump-link {
    display: inline-block;
    padding: 10px 20px;
    background: #122853;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s ease;
}
.video-jump-link:hover { background: #1a3a75; }

/* --- Draggable Rotary Nav Widget --- */
.rotary-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Default comfortable position */
    width: 140px;
    height: 50px;
    background: rgba(18, 40, 83, 0.9);
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    cursor: grab;
}
.rotary-wrapper:active { cursor: grabbing; }

@media (max-width: 768px) {
    .rotary-wrapper {
        width: 120px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

.rotary-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}
.rotary-btn:hover { background: rgba(255,255,255,0.2); }
.rotary-center { background: #d9b340; width: 44px; height: 44px; } /* Distinct center */
.rotary-center:hover { background: #e5c35b; }

@media (max-width: 768px) {
    .rotary-btn { width: 32px; height: 32px; font-size: 0.9rem; }
    .rotary-center { width: 36px; height: 36px; }
}

/* --- Magic Hover Lists --- */
.rotary-list {
    position: absolute;
    bottom: 60px; /* Above the switch */
    width: 200px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 10px;
    pointer-events: none;
}
.rotary-list.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Allow clicking when active */
}
.prev-list { right: 75px; } /* Closed to left side of button */
.next-list { right: 0; } /* Closed to top/right */

.list-title { font-size: 11px; color: #888; text-transform: uppercase; margin-bottom: 8px; border-bottom: 1px solid #eee; padding-bottom: 4px; }
.list-items { max-height: 250px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.list-items a {
    font-size: 12px; color: #333; text-decoration: none; padding: 5px;
    border-radius: 4px; transition: background 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list-items a:hover { background: #f0f0f0; color: #122853; }

/* --- Draggable Rotary Nav Widget --- */
.rotary-wrapper {
    position: fixed; bottom: 30px; right: 30px; width: 140px; height: 50px;
    background: rgba(20, 27, 45, 0.95); border-radius: 25px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5px; z-index: 9999; box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px); border: 1px solid #c5a059; cursor: grab;
}
.rotary-wrapper:active { cursor: grabbing; }

.rotary-btn {
    width: 40px; height: 40px; border-radius: 50%; display: flex;
    justify-content: center; align-items: center; color: white;
    cursor: pointer; transition: background 0.2s;
}
.rotary-btn:hover { background: rgba(197, 160, 89, 0.3); }
.rotary-center { background: #c5a059; width: 44px; height: 44px; color: #141B2D; } 
.rotary-center:hover { background: #d4b26a; }

/* --- Magic Hover Lists --- */
.rotary-list {
    position: absolute; bottom: 60px; width: 220px; background: white;
    border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 10px; pointer-events: none; border: 1px solid #eee;
}
.rotary-list.active { opacity: 1; visibility: visible; pointer-events: auto; }
.prev-list { right: 75px; } 
.next-list { right: 0; } 

.list-title { font-size: 11px; color: #c5a059; font-weight: bold; text-transform: uppercase; margin-bottom: 8px; border-bottom: 1px solid #eee; padding-bottom: 4px; }
.list-items { max-height: 250px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.list-items a {
    font-size: 12px; color: #333; text-decoration: none; padding: 6px;
    border-radius: 4px; transition: all 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list-items a:hover { background: #141B2D; color: #c5a059; padding-left: 10px; }

@media (max-width: 768px) {
    .rotary-wrapper { width: 120px; height: 40px; bottom: 20px; right: 20px; }
    .rotary-btn { width: 32px; height: 32px; font-size: 0.9rem; }
    .rotary-center { width: 36px; height: 36px; }
}

/* --- PROJECT STATUS COLORS --- */
.project-status span { 
    font-size: 18px !important; 
    font-weight: 800 !important; 
    text-transform: uppercase; 
}
.status-completed { 
    color: #002060 !important; /* Dark Blue */
    background: transparent !important; 
    padding: 0 !important; 
}
.status-ongoing { 
    color: #27ae60 !important; /* Green */
    background: transparent !important; 
    padding: 0 !important; 
}

/* --- SLIDER BULLETS (Centered Aligned) --- */
.slider-bullets { 
    position: absolute; 
    bottom: 35px; 
    left: 50%; 
    transform: translateX(-50%) !important; 
    display: flex; 
    gap: 8px; 
    z-index: 10; 
    flex-wrap: wrap; 
    width: auto; 
    justify-content: center; 
}
/* --- ENCLOSURES CHECKLIST --- */
.enclosures-section { 
    margin-top: 25px; 
    border-top: 1px solid #e0e0e0; 
    padding-top: 15px; 
}
.enclosures-title { 
    color: #002060; 
    font-size: 12px; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 8px; 
}
.enclosure-item { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    color: #888; 
    font-size: 13px; 
    font-weight: 600; 
    margin-bottom: 6px; 
}
.enclosure-item i { font-size: 16px; }
.enclosure-item i.checked { color: #27ae60; }
.enclosure-item i.unchecked { color: #ccc; }

/* --- VIDEO SECTION RENDERER (Grey Hairline Removed) --- */
.video-section-header { 
    font-size: 14px; 
    font-weight: 800; 
    color: #002060; 
    text-transform: uppercase; 
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    /* border-bottom: 2px solid #f0f0f0;  <-- REMOVED TO FIX HAIRLINE */
}
.video-section-header i { color: #c5a059; }
.video-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.video-wrapper { 
    width: 100%; 
    border-radius: 6px; 
    overflow: hidden; 
    background: #000; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
.video-wrapper iframe { width: 100%; aspect-ratio: 16/9; border: none; }
.video-wrapper video { width: 100%; max-height: 700px; aspect-ratio: 9/16; object-fit: contain; background: #000; }

/* ==========================================================================
   FINAL UI POLISH (MENU HIGHLIGHT, STATUS COLORS, ROTARY FIXES)
   ========================================================================== */

/* --- 1. Reduce Page Header Font Size --- */
.project-top-header h1 {
    font-size: 22px !important; 
    margin-bottom: 5px;
}
@media (max-width: 768px) {
    .project-top-header h1 { font-size: 18px !important; }
}

/* --- 2. Accurate Status Colors (Match Images) --- */
.project-status span { font-size: 18px !important; font-weight: 800 !important; text-transform: uppercase; }
.status-completed { color: #002060 !important; background: transparent !important; padding: 0 !important; }
.status-ongoing, .status-on-hand { color: #27ae60 !important; background: transparent !important; padding: 0 !important; }
.status-awarded { color: #c5a059 !important; background: transparent !important; padding: 0 !important; }

/* --- 3. Rotary List Text Truncation Fix --- */
.rotary-wrapper {
    touch-action: none; /* Prevents mobile screen from scrolling while dragging the switch */
}
.rotary-list {
    width: 280px !important; /* Make the list wider */
}
.list-items a {
    display: block !important;
    font-size: 12.5px !important; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    color: #333 !important;
    line-height: 1.5 !important;
    white-space: normal !important; /* Forces text to wrap instead of turning into dots */
    border-bottom: 1px solid #f5f5f5 !important;
    padding: 8px 10px !important;
    letter-spacing: normal !important;
    text-overflow: clip !important;
}
.list-items a:hover {
    background: #141B2D !important;
    color: #c5a059 !important;
}

/* --- 4. Active Menu Highlight Override --- */
.active-menu-gold {
    color: #c5a059 !important;
    font-weight: 800 !important;
}

/* --- ROTARY LIST TRUNCATION FIX --- */
.list-items a {
    font-size: 11px !important; /* Reduced font size */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    white-space: normal !important; /* Forces text to wrap instead of truncating */
    word-wrap: break-word !important;
    line-height: 1.4 !important;
    padding: 8px 10px !important;
    border-bottom: 1px solid #f5f5f5 !important;
}

/* ==========================================================================
   MASTER OVERRIDES: ROTARY LIST CROPPING & MODAL FIXES
   ========================================================================== */

.rotary-list {
    width: 270px !important; /* Makes the box wider to fit text nicely */
}

.list-items a {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    height: auto !important;
    min-height: min-content !important;
    line-height: 1.3 !important; /* Tightened up slightly */
    font-size: 11px !important;
    padding: 6px 10px !important; /* Reduced top/bottom padding to fit more items */
    display: block !important;
}

/* Ensure Tiles Grid works even when forced open */
.tiles-grid-container {
    display: block !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* --- STOP SCROLL BLEED (LOCK MAIN PAGE SCROLLING) --- */
.list-items, .rotary-list {
    overscroll-behavior: contain !important;
}

/* --- REDUCE SLIDER BUTTON SIZES --- */
.slider-btn {
    width: 26px !important;       /* Shrunk from 40px */
    height: 26px !important;      /* Shrunk from 40px */
    font-size: 10px !important;   /* Shrunk the icon inside */
}

/* Make sure the "1x" text fits perfectly in the smaller circle */
#speed-btn {
    font-size: 9px !important;    
    font-weight: 800 !important;
}

/* --- 2-BUTTON ROTARY WIDGET REDESIGN --- */
.rotary-wrapper.two-button-mode {
    width: 105px !important; /* Reduced width for just 2 buttons */
    justify-content: space-evenly !important;
}

.rotary-return { 
    background: #141B2D !important; 
    border: 1px solid #c5a059; 
}
.rotary-return:hover { background: #1a243d !important; }

.rotary-projects { 
    background: #c5a059 !important; 
    color: #141B2D !important; 
}
.rotary-projects:hover { background: #d4b26a !important; }

/* Align the single list to pop up correctly from the right */
.rotary-list.single-list {
    right: 0 !important;
}

/* --- MASTER GRCA POPUP STYLES --- */
.popup-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #ffffff;
    width: 95%;
    max-width: 1200px;
    height: 85vh; 
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    overflow: hidden; 
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.close-btn:hover {
    color: white;
    background-color: #e74c3c;
}

.popup-iframe {
    width: 100%;
    height: calc(100% + 250px); /* The cookie banner clipping hack */
    border: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* --- MOBILE FIX FOR COOKIE BANNER CLIPPING --- */
@media screen and (max-width: 768px) {
    .popup-iframe {
        /* The banner text wraps on mobile, making it much taller. 
           We must push it down further to keep it out of sight. */
        height: calc(100% + 450px) !important; 
    }
}

