/* --- 1. RESET & VARIABLES --- */
:root {
    --tecs-light-blue: #209bd7; 
    --tecs-dark-blue: #224091;
    --tecs-grey: #E0DCDC;
    --tecs-orange: #FE3B00;
    --white: #ffffff;
    --black: #000000;
    --font-main: 'Montserrat', sans-serif;
    --font-title: 'Raleway', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background-color: #f4f4f4; overflow-x: hidden; }

/* FIX: Stops background scrolling/zooming when modal is open */
body.no-scroll { overflow: hidden; height: 100vh; }

/* --- 2. GLOBAL ELEMENTS & UTILITIES --- */
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* SIDE LINK */
.side-link {
    position: fixed; bottom: 40px; left: 0; z-index: 9999;
    writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg);
    background-color: rgba(0, 0, 0, 0.6); color: #fff; padding: 20px 10px;
    font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 2px;
    border-top-right-radius: 5px; border-bottom-right-radius: 5px; text-decoration: none;
    left: -60px; animation: slideInSide 0.8s ease-out 1s forwards; 
}
@keyframes slideInSide { to { left: 0; } }

/* CHAT BUTTON */
.chat-btn {
    position: fixed; bottom: 30px; right: 30px; background-color: var(--tecs-orange); color: var(--white);
    width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; z-index: 9999; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.chat-btn:hover { transform: scale(1.1); background-color: #d63200; }

/* BUTTONS */
.btn-orange {
    background: var(--tecs-orange); color: var(--white);
    padding: 15px 40px; text-decoration: none; border-radius: 30px;
    font-weight: 700; display: inline-block; width: max-content;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); border: none; cursor: pointer;
}
.btn-orange:hover { transform: translateY(-3px); }

.btn-blue {
    background: var(--tecs-light-blue); color: var(--white); padding: 12px 30px;
    text-decoration: none; border-radius: 30px; font-weight: 700; display: inline-block;
}
.btn-blue:hover { background: var(--tecs-dark-blue); }

.btn-white {
    background: var(--white); color: var(--tecs-dark-blue);
    padding: 15px 40px; text-decoration: none; border-radius: 30px;
    font-weight: 700; display: inline-block; border: none; cursor: pointer;
}
.btn-white:hover { background: var(--tecs-light-blue); color: var(--white); }

.btn-text { font-weight: 700; color: var(--tecs-dark-blue); display: inline-flex; align-items: center; gap: 8px; }
.btn-text:hover { color: var(--tecs-orange); gap: 12px; }

/* TITLES */
.section-title {
    font-family: var(--font-title); font-weight: 300; text-transform: uppercase;
    color: var(--black); font-size: 2.5rem; margin-bottom: 20px; letter-spacing: 2px;
}
.section-title.white-text { color: var(--white); }
.section-title.center-text { text-align: center; }

/* SPACING UTILITIES */
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }
.mt-80 { margin-top: 80px; }
.spacer-white { height: 80px; background-color: var(--white); }

/* --- 3. HEADER & NAVIGATION --- */
.top-bar { background-color: var(--tecs-dark-blue); color: var(--white); padding: 10px 0; font-size: 0.85rem; }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.contact-info span { margin-right: 20px; opacity: 0.9; }
.contact-info i { margin-right: 5px; color: var(--white); }
.login-link { color: var(--white); font-weight: 600; }
.login-link:hover { color: var(--tecs-orange); }

.navbar {
    position: fixed; top: 0; width: 100%; padding: 20px 50px;
    display: flex; justify-content: center; transition: 0.4s; z-index: 1000; background: transparent;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95); box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 15px 50px;
}
.nav-container { width: 100%; max-width: 1600px; display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 75px; transition: 0.3s; }
.navbar.scrolled .logo img { height: 60px; }

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a {
    text-decoration: none; color: var(--white); font-size: 0.9rem; font-weight: 600;
    letter-spacing: 1px; transition: 0.3s;
}
.nav-links a:hover { color: var(--tecs-light-blue); }
.nav-links a.active { color: var(--tecs-light-blue); }
.navbar.scrolled .nav-links a { color: #333; }
.navbar.scrolled .nav-links a:hover { color: var(--tecs-light-blue); }

.btn-basket { color: var(--white); font-size: 1.2rem; }
.navbar.scrolled .btn-basket { color: #000; }
.btn-basket:hover { color: var(--tecs-orange); }

/* --- 4. HERO SECTION (VIDEO) --- */
.hero-section {
    width: 100%; height: 100vh; position: relative;
    display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
}
.back-video {
    position: absolute; right: 0; bottom: 0; min-width: 100%; min-height: 100%;
    width: auto; height: auto; z-index: -1; object-fit: cover;
}
.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2); z-index: 0;
}
.hero-content { position: relative; z-index: 1; width: 100%; padding: 0 20px; }
.hero-content h1 {
    font-size: 6rem; line-height: 1; font-weight: 900;
    text-transform: uppercase; letter-spacing: -1px;
    color: rgba(255, 255, 255, 0.25); white-space: nowrap; margin-bottom: 100px;
}
.highlight-blue { color: rgba(32, 155, 215, 0.25); }
.scroll-indicator {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    font-size: 2rem; color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite; cursor: pointer; z-index: 10;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-15px);}
    60% {transform: translateX(-50%) translateY(-7px);}
}

/* --- 5. PAGE HERO (STATIC - FOR SUBPAGES) --- */
.page-hero {
    height: 60vh; background-size: cover; background-position: center;
    position: relative; display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white); margin-bottom: 0;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: 1;
}
.hero-text-box { position: relative; z-index: 2; }
.page-hero h1 {
    font-size: 4rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 10px;
    text-transform: uppercase;
}
.page-hero .highlight-blue { color: var(--tecs-light-blue); opacity: 1; }
.page-hero p { font-size: 1.5rem; font-weight: 300; letter-spacing: 2px; }

/* --- 6. INTRO SECTION --- */
.intro-section { background-color: #f4f4f4; text-align: center; }
.intro-section .container { padding: 80px 20px; }
.parallax-banner {
    height: 70vh; background-attachment: fixed; background-position: center;
    background-repeat: no-repeat; background-size: cover;
    position: relative; display: flex; align-items: flex-end;
}
.overlay-dark {
    width: 100%; background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 60px 40px; display: flex; justify-content: flex-start; align-items: center;
}
.intro-content-layout {
    flex-direction: column; justify-content: center; align-items: center; text-align: center;
    padding: 100px 20px;
}
.intro-text-box { max-width: 800px; }
.parallax-text {
    color: var(--white); font-size: 4rem; font-weight: 300;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px;
}
.intro-desc {
    color: var(--white); font-size: 1.2rem; margin-bottom: 20px; opacity: 0.9; line-height: 1.6;
}

/* --- 7. SERVICES (HOME) --- */
.services-intro { padding: 80px 20px; text-align: center; background-color: #f4f4f4; }
.services-lead {
    max-width: 900px; margin: -20px auto 0 auto;
    font-size: 1.2rem; color: #555; line-height: 1.8; position: relative; z-index: 1;
}

.services-container { width: 100%; position: relative; z-index: 2; }
.sticky-card {
    position: sticky; top: 0; height: 100vh; display: flex; overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
}
.split-row.reverse { flex-direction: row-reverse; }
.split-text {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 80px; color: var(--white);
}
.split-image {
    flex: 1; background-position: center; background-size: cover;
    height: 100%; min-height: 100vh; 
}
.bg-light-blue { background-color: var(--tecs-light-blue); }
.bg-dark-blue { background-color: var(--tecs-dark-blue); }
.text-inner { max-width: 600px; }
.text-inner h3 { font-size: 4rem; font-weight: 300; margin-bottom: 30px; letter-spacing: 1px; text-transform: uppercase; }
.text-inner p { font-size: 1.2rem; line-height: 1.8; margin-bottom: 40px; font-weight: 400; }
.service-list li { margin-bottom: 10px; font-size: 1.1rem; opacity: 0.9; border-left: 2px solid rgba(255,255,255,0.3); padding-left: 15px; }

/* --- 8. CORE VALUES (HORIZONTAL SCROLL) --- */
.horizontal-scroll-section { position: relative; height: 400vh; background-color: #f4f4f4; }
.sticky-wrapper {
    position: sticky; top: 0; height: 100vh; width: 100%;
    overflow: hidden; display: flex; flex-direction: column;
    justify-content: center; background: #f4f4f4;
}
.values-header { text-align: center; margin-bottom: 40px; padding: 0 20px; }
.values-header p { color: #666; font-size: 1.2rem; }
.horizontal-track { 
    display: flex; gap: 40px; 
    padding-left: 5vw; 
    width: max-content; 
    will-change: transform;
}
.h-card {
    position: relative; width: 300px; height: 500px; flex-shrink: 0;
    overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.2); border-radius: 5px;
}
.h-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.h-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(30, 70, 140, 0.85); display: flex; align-items: flex-end; padding: 30px;
    opacity: 0.9; transition: 0.3s;
}
.h-overlay h3 { color: var(--white); font-size: 1.5rem; text-transform: uppercase; font-weight: 700; line-height: 1.2; }
.h-card:hover img { transform: scale(1.1); }
.h-card:hover .h-overlay { opacity: 0.7; }

/* --- 9. WHY TECS --- */
.why-tecs-intro { padding: 80px 20px; text-align: center; background-color: #f4f4f4; }
.lead-text { font-size: 1.5rem; color: var(--tecs-light-blue); margin-bottom: 20px; font-weight: 600; }
.why-tecs-intro p { font-size: 1.2rem; color: #555; max-width: 800px; margin: 0 auto 20px auto; line-height: 1.6; }
.why-tecs-parallax {
    height: auto; min-height: 60vh; background-attachment: fixed; background-position: center;
    background-size: cover; position: relative; display: flex; align-items: center; justify-content: center;
}
.overlay-full-dark {
    background: rgba(0,0,0,0.8); width: 100%; height: 100%; padding: 80px 20px;
    display: flex; justify-content: center; align-items: center;
}
.text-content { max-width: 900px; text-align: center; }
.text-content p { color: var(--white); font-size: 1.2rem; margin-bottom: 25px; line-height: 1.8; font-weight: 400; }

/* --- 10. ABOUT PAGE CONTENT --- */
.about-content { padding: 100px 20px; background: var(--white); }
.text-column { max-width: 900px; margin: 0 auto; text-align: left; }
.lead-p { font-size: 1.3rem; color: var(--tecs-dark-blue); font-weight: 600; margin-bottom: 30px; line-height: 1.6; }
.about-content p { font-size: 1.1rem; line-height: 1.8; color: #555; margin-bottom: 20px; }

/* ETHOS & VALUES */
.ethos-section { background-color: var(--tecs-dark-blue); padding: 100px 20px; color: var(--white); }
.ethos-grid { display: flex; flex-wrap: wrap; gap: 60px; margin-top: 50px; justify-content: center; }
.ethos-col { flex: 1; min-width: 300px; max-width: 600px; }
.ethos-col h3 { font-size: 1.8rem; margin-bottom: 10px; color: var(--tecs-light-blue); }
.ethos-col p { font-size: 1.1rem; margin-bottom: 20px; opacity: 0.8; }
.check-list { list-style: none; padding: 0; }
.check-list li {
    font-size: 1.2rem; margin-bottom: 15px; font-weight: 600; display: flex; align-items: center; gap: 15px;
}
.check-list li i { color: var(--tecs-orange); width: 30px; text-align: center; font-size: 1.3rem; }

/* TIMELINE */
.timeline-section { padding: 100px 20px; background: #f9f9f9; }
.timeline { position: relative; max-width: 1000px; margin: 60px auto 0; }
.timeline::after {
    content: ''; position: absolute; width: 4px; background-color: var(--tecs-light-blue);
    top: 0; bottom: 0; left: 50%; margin-left: -2px; border-radius: 2px;
}
.timeline-item { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; }
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }
.timeline-item::after {
    content: ''; position: absolute; width: 20px; height: 20px;
    right: -10px; background-color: var(--white); border: 4px solid var(--tecs-orange);
    top: 25px; border-radius: 50%; z-index: 1;
}
.timeline-item.right::after { left: -10px; }
.timeline-item .content {
    padding: 30px; background-color: white; border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); position: relative;
}
.year {
    font-size: 3rem; font-weight: 900; color: rgba(0,0,0,0.05);
    position: absolute; top: 10px;
}
.timeline-item.left .year { right: 20px; }
.timeline-item.right .year { left: 20px; }
.timeline-item h3 { font-size: 1.2rem; margin: 20px 0 10px 0; color: var(--tecs-dark-blue); }
.timeline-item p { font-size: 0.95rem; color: #666; line-height: 1.6; }

/* CAPABILITY CTA */
.capability-cta {
    background-size: cover; background-position: center; background-attachment: fixed;
    position: relative;
}
.overlay-blue {
    background: rgba(34, 64, 145, 0.9);
    padding: 100px 20px; width: 100%; height: 100%;
}
.capability-cta h2 { font-size: 3rem; color: var(--white); margin-bottom: 20px; font-weight: 700; }
.capability-cta p { font-size: 1.2rem; color: rgba(255,255,255,0.8); max-width: 700px; margin: 0 auto 40px auto; }

/* --- 11. CASE STUDIES, BROCHURES & NEWS GRID --- */
.case-studies-section, .brochures-section, .news-section { 
    padding: 100px 20px; 
    background-color: #f4f4f4; 
}

/* Shared Grid Settings for 2 per row */
.cs-grid, .news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px;
    max-width: 1200px; margin: 0 auto;
}

/* Card Styling */
.cs-card, .news-card {
    background: white; border-radius: 10px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s;
    display: flex; flex-direction: column;
}

.cs-image, .news-img { 
    aspect-ratio: 16 / 9;
    overflow: hidden; 
    position: relative; 
}

.cs-image img, .news-img img { 
    width: 100%; height: 100%; 
    object-fit: cover; 
    transition: 0.5s ease; 
}

/* ZOOM EFFECT ON HOVER */
.cs-card:hover .cs-image img, .news-card:hover .cs-image img {
    transform: scale(1.1);
}

/* CONTENT ALIGNMENT LOGIC */
.cs-content, .news-content { 
    padding: 30px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}

.cs-title { 
    color: var(--tecs-dark-blue); 
    font-size: 1.4rem; 
    margin-bottom: 10px; 
    min-height: 3.4rem; /* Aligns News/Brochure Titles */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cs-meta { 
    color: var(--tecs-light-blue); 
    font-size: 0.85rem; 
    margin-bottom: 15px; 
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 1.2rem; 
}

.cs-description {
    flex: 1; 
}

.cs-description p { 
    color: #666; font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; 
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Aligns News/Brochure Summaries */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cs-actions {
    margin-top: 20px;
}

/* BROCHURES GRID (KEEP SEPARATE) */
.brochure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px; margin: 0 auto;
}
.brochure-card {
    background: white; border-radius: 10px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s;
    display: flex; flex-direction: column; padding: 30px; text-align: center;
}
.brochure-icon { font-size: 3rem; color: var(--tecs-light-blue); margin-bottom: 20px; text-align: center; }

/* MODAL POPUP (Shared) */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85); z-index: 2000;
    backdrop-filter: blur(5px); justify-content: center; align-items: center;
}
.modal-overlay.active { display: flex; animation: fadeIn 0.3s ease-out; }
.modal-window {
    width: 95%; max-width: 1400px; height: 90vh;
    background: white; position: relative; border-radius: 5px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); display: flex; flex-direction: column;
}
.modal-close {
    position: absolute; top: -40px; right: 0;
    background: transparent; border: none; color: white;
    font-size: 2rem; cursor: pointer; transition: 0.3s;
}
.modal-close:hover { color: var(--tecs-orange); transform: scale(1.2); }
.modal-body { 
    flex: 1; width: 100%; height: 100%; overflow: hidden; 
    border-radius: 5px; background-color: #000; 
}
.modal-body iframe { width: 100%; height: 100%; border: none; }

/* --- 12. CAREERS --- */
.careers-section { 
    display: flex; min-height: 600px; position: relative; z-index: 5; 
    background-color: var(--tecs-light-blue); 
}
.careers-container { display: flex; width: 100%; max-width: 1400px; margin: 0 auto; }
.careers-left {
    flex: 1; color: var(--white);
    display: flex; flex-direction: column; justify-content: center; padding: 80px;
}
.careers-left p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 40px; max-width: 600px; }
.careers-right { flex: 1; display: flex; align-items: center; justify-content: center; }
.job-card {
    background: var(--white); padding: 60px; box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    max-width: 500px; text-align: center;
}
.job-card h3 { color: var(--tecs-dark-blue); font-size: 2.5rem; margin-bottom: 10px; font-weight: 300; }
.job-card h4 { color: var(--tecs-light-blue); font-size: 1.5rem; margin-bottom: 20px; }
.job-card p { color: #555; line-height: 1.6; margin-bottom: 30px; }

/* JOB LISTINGS GRID */
.jobs-section { padding: 80px 20px; background: #f4f4f4; }
.jobs-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; max-width: 1400px; margin: 40px auto 0 auto;
}
.job-listing-card {
    background: white; border-radius: 5px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #eee;
    display: flex; flex-direction: column;
}
.job-listing-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.job-img { height: 200px; overflow: hidden; }
.job-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.job-listing-card:hover .job-img img { transform: scale(1.1); }
.job-content { padding: 30px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.job-content h3 { font-size: 1.5rem; color: var(--tecs-dark-blue); margin-bottom: 5px; }
.job-content h4 { font-size: 1rem; color: var(--tecs-light-blue); margin-bottom: 20px; font-weight: 600; }
.job-content p { font-size: 0.95rem; color: #666; margin-bottom: 25px; flex: 1; }

/* GENERAL APPLICATION */
.general-app-section {
    background-color: var(--tecs-dark-blue); padding: 80px 20px; color: var(--white);
}
.general-app-section h2 { color: var(--white); font-family: var(--font-title); font-weight: 300; }
.general-app-section p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

/* APPLICATION MODAL */
.app-window { max-width: 600px; height: auto; max-height: 90vh; overflow-y: auto; padding: 40px; }
.app-modal-content h2 { color: var(--tecs-dark-blue); margin-bottom: 10px; }
.form-row-split { display: flex; gap: 20px; }
.f-group { margin-bottom: 20px; flex: 1; }
.f-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #444; font-size: 0.9rem; }
.modal-input {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; background: #f9f9f9;
}
.full-width { width: 100%; margin-top: 10px; }
.file-upload-box {
    border: 2px dashed #ccc; padding: 20px; text-align: center; border-radius: 5px;
    position: relative; color: #777; cursor: pointer; transition: 0.3s;
}
.file-upload-box:hover { border-color: var(--tecs-orange); color: var(--tecs-orange); }

/* --- 14. NEWSLETTER --- */
.newsletter-section {
    background-color: #f4f4f4; padding: 80px 20px; position: relative; z-index: 5; border-top: 1px solid #ddd;
}
.newsletter-section h2 {
    font-family: var(--font-title); font-weight: 700; font-size: 2.5rem;
    color: var(--tecs-dark-blue); margin-bottom: 50px; max-width: 800px;
}
.contact-split { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 50px; }
.contact-details { flex: 1; min-width: 300px; }
.c-item { margin-bottom: 25px; font-size: 1.1rem; color: #333; }
.c-item strong { display: block; margin-bottom: 5px; color: #555; font-weight: 400; font-size: 0.9rem; }
.newsletter-form { flex: 1; min-width: 300px; }
.newsletter-form label { display: block; margin-bottom: 10px; font-size: 0.9rem; color: #555; }
.form-input {
    width: 100%; padding: 15px; border: 1px solid #ccc; background: transparent;
    margin-bottom: 20px; font-size: 1rem;
}
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 30px; }
.btn-submit {
    background: transparent; border: 1px solid #333; padding: 12px 40px;
    font-size: 1rem; cursor: pointer; transition: 0.3s;
}
.btn-submit:hover { background: var(--tecs-dark-blue); color: var(--white); border-color: var(--tecs-dark-blue); }

/* --- 15. PARTNERS --- */
.partners-section { background-color: #333; padding: 80px 20px; text-align: center; color: var(--white); position: relative; z-index: 5; }
.partners-gap { height: 40px; }
.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px; max-width: 1400px; margin: 0 auto;
}
.partner-logo { background: rgba(255,255,255,0.1); padding: 20px; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #aaa; border: 1px solid #444; }
.partner-logo img { max-width: 100%; max-height: 80px; filter: grayscale(100%); transition: 0.3s; }
.partner-logo:hover img { filter: grayscale(0%); }

/* --- 16. FINAL FOOTER --- */
.final-footer {
    background-color: #f4f4f4; padding: 40px 20px; position: relative; z-index: 5; border-top: 1px solid #e0e0e0;
}
.footer-layout { 
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.footer-socials { display: flex; gap: 15px; justify-self: start; }
.footer-socials a { font-size: 1.5rem; color: #333; transition: 0.3s; }
.footer-socials a:hover { color: var(--tecs-orange); transform: translateY(-3px); }

/* FOOTER LOGO - CENTERED & 80PX */
.footer-logo-center { display: flex; justify-content: center; justify-self: center; }
.footer-logo-center img { height: 80px; width: auto; filter: none; }

.copyright { text-align: right; justify-self: end; }
.copyright p { font-size: 0.8rem; color: #777; margin: 0; }
.copyright a { color: #555; text-decoration: none; font-weight: 600; }
.copyright a:hover { color: var(--tecs-orange); }

/* --- 17. RAIL CALENDAR --- */
.calendar-container { max-width: 1400px; margin: 0 auto; padding: 40px 20px; }
.calendar-controls { display: flex; justify-content: center; align-items: center; gap: 30px; margin-bottom: 40px; }
.calendar-controls h2 { font-size: 2.5rem; color: var(--tecs-dark-blue); }
.btn-nav { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--tecs-light-blue); }
.btn-nav:hover { color: var(--tecs-orange); }

.rail-calendar-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cal-month {
    background: white; padding: 20px; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.cal-month h3 { text-align: center; color: var(--tecs-light-blue); margin-bottom: 15px; text-transform: uppercase; }

.cal-days {
    display: grid; 
    grid-template-columns: 25px repeat(7, 1fr); 
    gap: 2px; 
    text-align: center; 
    font-size: 0.8rem;
    align-items: center;
}
.day-header { font-weight: 700; color: #999; font-size: 0.7rem; padding-bottom: 5px; }

.rail-week-col {
    font-weight: 700; color: var(--white); background-color: var(--tecs-light-blue);
    border-radius: 4px; height: 20px; width: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; margin: 0 auto;
}

.day-num { padding: 8px 0; border-radius: 4px; color: #333; }
.day-num.today { background-color: var(--tecs-orange); color: white; font-weight: 700; }
.day-empty { height: 100%; }

.period-info-bar {
    background: var(--tecs-dark-blue); color: white;
    padding: 20px; text-align: center; margin-top: 40px; border-radius: 10px;
    font-size: 1.2rem;
}

/* --- 19. ANIMATION --- */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

.fade-in-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s forwards 0.5s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* RESPONSIVE */
@media (max-width: 1200px) {
    .partners-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    .hero-content h1 { white-space: normal; font-size: 3rem; margin-bottom: 60px; }
    .navbar { padding: 20px; } .nav-links { display: none; }
    .sticky-card { position: relative; height: auto; flex-direction: column !important; }
    .split-text { padding: 60px 30px; } .split-image { min-height: 300px; height: 300px; }
    
    .intro-text-box { width: 100%; padding: 0 15px; }
    .parallax-text { font-size: 2.5rem; }
    .overlay-dark { padding: 40px 15px; }

    .horizontal-track { 
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 30px;
        transform: none !important;
        padding: 40px 20px;
        align-items: center;
    }
    
    /* Responsive Grids */
    .cs-grid, .news-grid { grid-template-columns: 1fr; }

    .careers-section { flex-direction: column; }
    .careers-container { flex-direction: column; }
    .job-card { margin-left: 0; margin-top: -50px; max-width: 90%; }
    .footer-layout { display: flex; flex-direction: column; text-align: center; }
    .copyright { text-align: center; }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item.left, .timeline-item.right { text-align: left; left: 0; }
    .timeline-item::after { left: 21px; }
    .timeline-item.right::after { left: 21px; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row-split { flex-direction: column; gap: 0; }
}