/* --- VARIABLES --- */
:root {
    /* TECS BRAND COLORS */
    --tecs-dark: #224091;    /* Deep Blue */
    --tecs-light: #209bd7;   /* Sky Blue */
    --tecs-orange: #FE3B00;  /* High Vis Orange */
    --tecs-grey: #E0DCDC;    /* Background Grey */
    --bg-light: #F4F7F9;     /* Very Light Blue/Grey */
    --text-main: #333;
    --white: #fff;
    --font-main: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-main); background-color: #fff; overflow-x: hidden; }
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; }

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--tecs-dark);
    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 --- */
.navbar {
    background: var(--white);
    padding: 20px 0;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }

.logo { font-weight: 800; font-size: 1.6rem; color: var(--tecs-dark); }
.logo span { color: var(--tecs-light); }
.logo.white { color: var(--white); }

.nav-links { display: flex; gap: 40px; }
.nav-links a { 
    color: var(--tecs-dark); 
    font-weight: 500; font-size: 1rem; 
    display: flex; align-items: center; gap: 5px;
}
.nav-links a:hover { color: var(--tecs-orange); transform: translateY(-2px); }

.btn-basket { color: var(--tecs-dark); font-size: 1.2rem; }
.btn-basket:hover { color: var(--tecs-orange); }

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    padding: 100px 0 150px 0;
    background-color: #fcfcfc;
    overflow: hidden; 
}
.shape-teardrop {
    position: absolute;
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    z-index: 1;
}
.orange-shape {
    width: 600px; height: 600px;
    background: var(--tecs-orange);
    top: -200px; right: -150px;
    opacity: 1; transform: rotate(225deg);
}
.blue-shape {
    width: 400px; height: 400px;
    background: var(--tecs-dark);
    bottom: -150px; left: -100px;
    opacity: 1; transform: rotate(45deg);
}
.hero-layout {
    display: flex; align-items: center; justify-content: space-between;
    gap: 60px; position: relative; z-index: 2; 
}
.hero-text { flex: 1; max-width: 550px; }
.hero-text h1 {
    font-size: 3rem; color: var(--tecs-dark); line-height: 1.2;
    margin-bottom: 25px; font-weight: 700;
}
.text-highlight { color: var(--tecs-light); }
.hero-text p {
    font-size: 1.1rem; color: #555; line-height: 1.6; margin-bottom: 40px;
}

.btn-primary {
    background: var(--tecs-orange);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 700; font-size: 1rem;
    display: inline-block;
}
.btn-primary:hover { 
    background: #d63200; transform: translateY(-3px); 
}

.hero-image-wrapper { flex: 1; position: relative; }

.hero-img {
    width: 100%; max-width: 600px;
    display: block;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

.review-badge {
    position: absolute;
    bottom: -30px; left: 30px;
    background: var(--white);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 250px;
}
.floating-anim { animation: floatBadge 5s ease-in-out infinite; }
@keyframes floatBadge { 0%,100% {transform: translateY(0);} 50% {transform: translateY(-10px);} }
.stars { color: var(--tecs-orange); margin-bottom: 5px; font-size: 0.9rem; }
.review-badge p { font-size: 0.9rem; color: #555; margin-bottom: 10px; }
.badge-logo { font-weight: 700; color: var(--tecs-dark); display: flex; align-items: center; gap: 5px; }

/* --- CATEGORIES --- */
.courses-section { padding: 80px 0; background-color: var(--white); }
.section-header { text-align: center; margin-bottom: 60px; max-width: 600px; margin: 0 auto 60px auto; }
.section-header h2 { font-size: 2.5rem; color: var(--tecs-dark); margin-bottom: 15px; }
.section-header p { color: #666; font-size: 1.1rem; }
.section-header.white-text h2, .section-header.white-text p { color: var(--white); }

.category-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px; margin-bottom: 50px;
}
.category-card {
    background: var(--white); border-radius: 15px;
    border: 1px solid #eee; padding: 40px; text-align: center;
    transition: 0.3s; position: relative; overflow: hidden;
}
.category-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.15); 
    border-color: transparent;
}
.cat-icon {
    width: 80px; height: 80px; border-radius: 50%;
    margin: 0 auto 25px auto; display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
}
.blue-bg { background: rgba(34, 64, 145, 0.1); color: var(--tecs-dark); }
.orange-bg { background: rgba(254, 59, 0, 0.1); color: var(--tecs-orange); }
.category-card h3 { font-size: 1.5rem; color: var(--tecs-dark); margin-bottom: 15px; }
.category-card p { color: #666; margin-bottom: 30px; line-height: 1.6; }
.btn-text { font-weight: 700; color: var(--tecs-dark); display: inline-flex; align-items: center; gap: 8px; }
.btn-text:hover { color: var(--tecs-orange); gap: 12px; }

.center-btn { text-align: center; margin-top: 40px; }
.btn-outline-large {
    display: inline-block; border: 2px solid #ccc;
    color: #666; padding: 12px 40px; border-radius: 30px; font-weight: 600;
}
.btn-outline-large:hover { border-color: var(--tecs-dark); color: var(--tecs-dark); }

/* --- OUR PROCESS --- */
.process-section { padding: 80px 0; background-color: #F9FAFB; }
.process-steps { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 50px; }
.step-item { flex: 1; text-align: center; padding: 0 10px; position: relative; }
.step-icon {
    width: 100px; height: 100px; background: var(--white); border-radius: 50%;
    margin: 0 auto 20px auto; display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: var(--tecs-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 4px solid #EBF5FF;
}
.step-item h3 { color: var(--tecs-dark); margin-bottom: 10px; font-size: 1.2rem; }
.step-item p { font-size: 0.9rem; color: #777; line-height: 1.5; }
.step-line {
    flex: 0.5; height: 4px; background: #E0E0E0; margin-top: 50px; border-radius: 2px;
}

/* --- ON ANY DEVICE --- */
.device-section { background-color: var(--tecs-dark); padding: 80px 0; color: var(--white); }
.device-layout { display: flex; align-items: center; gap: 60px; }
.device-image { flex: 1; }
.device-image img { width: 100%; max-width: 500px; display: block; border-radius: 10px; }
.device-text { flex: 1; }
.device-text h2 { font-size: 2.5rem; margin-bottom: 20px; line-height: 1.2; }
.device-text p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 30px; line-height: 1.6; }
.device-features li { margin-bottom: 15px; font-size: 1.05rem; display: flex; align-items: center; gap: 15px; }
.device-features i { color: var(--white); font-size: 1.2rem; }

/* --- STAFF TRAINING (Angled) --- */
.staff-section {
    /* UPDATED: Changed to White to match Accreditation section */
    background-color: var(--white);
    padding: 80px 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Background: Light Blue */
.staff-content-wrapper {
    background: var(--tecs-light);
    padding: 100px 0;
    transform: skewY(-3deg);
    margin: 50px 0;
}
/* Straighten the content inside */
.staff-content-wrapper .container { transform: skewY(3deg); }

.staff-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px; margin: 50px 0;
}
.staff-card {
    padding: 40px 20px; text-align: center; border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: 0.3s;
}
.staff-card:hover { transform: translateY(-10px); }

/* Card Colors */
.white-card { background: var(--white); color: var(--tecs-dark); }
.grey-card { background: #545F66; color: var(--white); }
.blue-card { background: var(--tecs-dark); color: var(--white); }
.gold-card { background: var(--tecs-orange); color: var(--white); }

.staff-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.discount { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; text-transform: uppercase; }
.staff-card p { font-size: 0.9rem; opacity: 0.9; }

.staff-benefits {
    display: flex; justify-content: space-around; flex-wrap: wrap; 
    text-align: center; color: var(--white); gap: 30px; margin-bottom: 50px;
}
.benefit-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.benefit-item i { font-size: 2rem; opacity: 0.8; }
.benefit-item span { font-weight: 700; font-size: 1.1rem; }
.benefit-item small { opacity: 0.7; }

.btn-staff-demo {
    background: var(--white); color: var(--tecs-dark);
    padding: 15px 40px; border-radius: 5px; font-weight: 700;
}
.btn-staff-demo:hover { background: var(--tecs-orange); color: var(--white); }

/* --- LOGO STRIP --- */
.logo-strip { padding: 60px 0; background: var(--white); text-align: center; }
.logo-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 40px; align-items: center; margin-bottom: 30px; }
.logo-item { 
    font-size: 1.5rem; color: #888; display: flex; align-items: center; gap: 10px; font-weight: 700; 
    filter: grayscale(100%); opacity: 0.6; transition: 0.3s;
}
.logo-item:hover { filter: grayscale(0%); opacity: 1; color: var(--tecs-dark); }
.logo-note { font-size: 0.9rem; color: #999; }

/* --- FOOTER --- */
footer { background: var(--tecs-dark); color: #ccc; padding: 70px 0 20px 0; }
.footer-content { display: flex; flex-wrap: wrap; gap: 50px; margin-bottom: 50px; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col h4 { color: var(--white); margin-bottom: 25px; font-size: 1.1rem; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #aaa; font-size: 0.95rem; }
.footer-col a:hover { color: var(--tecs-orange); }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding-top: 25px; font-size: 0.85rem; }

/* SOCIAL ICONS */
.footer-socials { margin-top: 20px; display: flex; gap: 15px; }
.footer-socials a { 
    width: 35px; height: 35px; background: rgba(255,255,255,0.1); 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; transition: 0.3s; color: var(--white);
}
.footer-socials a:hover { background: var(--tecs-orange); transform: translateY(-3px); }

/* --- 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-slow { opacity: 0; animation: fadeIn 1.5s ease-out forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.delay-1 { transition-delay: 0.2s; animation-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; animation-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; animation-delay: 0.6s; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-layout, .device-layout { flex-direction: column; text-align: center; }
    .hero-text { padding-top: 50px; }
    .orange-shape { top: -250px; right: -250px; }
    .blue-shape { bottom: -200px; left: -200px; }
    .hero-buttons { justify-content: center; }
    .review-badge { left: 50%; transform: translateX(-50%); bottom: -40px; width: 80%; }
    .nav-links { display: none; }
    .process-steps { flex-direction: column; gap: 30px; }
    .step-line { display: none; }
}