/* SMY Technical Institute - site styles (Bootstrap 5 + custom). Palette from the logo. */
:root {
    --navy: #0b2a4a;
    --navy-2: #123b66;
    --blue: #0a78c2;
    --red: #c40000;
    --yellow: #ffd60a;
    --ink: #1c2733;
    --muted: #5b6b7b;
    --soft: #f3f6fa;
    --bs-primary: #0a78c2;
    --bs-primary-rgb: 10, 120, 194;
    --bs-link-color: #0a78c2;
    --bs-body-font-family: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-color: var(--ink);
}

body { font-family: var(--bs-body-font-family); color: var(--ink); line-height: 1.65; }
h1, h2, h3, h4, h5, .brand-name, .footer-brand { font-family: 'Poppins', var(--bs-body-font-family); font-weight: 700; color: var(--navy); }
img { max-width: 100%; height: auto; }
a { text-decoration-thickness: 1px; text-underline-offset: 2px; }

.btn-primary { --bs-btn-bg: var(--blue); --bs-btn-border-color: var(--blue); --bs-btn-hover-bg: var(--navy-2); --bs-btn-hover-border-color: var(--navy-2); --bs-btn-active-bg: var(--navy); --bs-btn-active-border-color: var(--navy); }
.btn-outline-primary { --bs-btn-color: var(--blue); --bs-btn-border-color: var(--blue); --bs-btn-hover-bg: var(--blue); --bs-btn-hover-border-color: var(--blue); }
.btn-accent { background: var(--yellow); border-color: var(--yellow); color: var(--navy); font-weight: 600; }
.btn-accent:hover, .btn-accent:focus { background: #ffe14d; border-color: #ffe14d; color: var(--navy); }
.btn { border-radius: .6rem; }

.skip-link:focus { position: fixed; left: 0; top: 0; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* top bar + header */
.topbar { background: var(--navy); color: #d6e4f3; font-size: .85rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--yellow); }
.topbar .bi { color: var(--yellow); margin-right: .25rem; }

.site-header { background: #fff; box-shadow: 0 2px 14px rgba(11, 42, 74, .08); z-index: 1030; }
.navbar-brand { text-decoration: none; }
.brand-name { font-size: 1.05rem; color: var(--red); line-height: 1.1; }
.brand-sub { color: var(--muted); font-size: .75rem; }
.navbar .nav-link { font-weight: 500; color: var(--navy); padding: .6rem .85rem; border-radius: .5rem; }
.navbar .nav-link:hover { color: var(--blue); }
.navbar .nav-link.active { color: var(--red); position: relative; }
@media (min-width: 992px) {
    .navbar .nav-link.active::after { content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .15rem; height: 3px; border-radius: 2px; background: var(--yellow); }
}

/* hero */
.hero {
    background: radial-gradient(circle at 85% 20%, rgba(10, 120, 194, .55), transparent 45%), linear-gradient(135deg, var(--navy) 0%, #0e3a66 100%);
    color: #e8f0f8; padding: 4.5rem 0 5.5rem; position: relative; overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0; background: url('../../images/2025/07/gear-bg.jpg') center / cover; opacity: .07; }
.hero .container { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin: 1rem 0; }
.hero .lead { max-width: 36rem; }
.badge-iso { display: inline-block; background: rgba(255, 214, 10, .14); color: var(--yellow); border: 1px solid rgba(255, 214, 10, .4); border-radius: 2rem; padding: .3rem .9rem; font-size: .85rem; font-weight: 600; }
.hero-emblem { width: min(320px, 70%); margin: 0 auto; padding: 1.2rem; border-radius: 50%; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 10px rgba(255, 255, 255, .05); animation: floaty 6s ease-in-out infinite; }
.hero-copy > * { animation: fadeUp .8s both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .3s; }

/* stats band */
.stats { margin-top: -2.6rem; position: relative; z-index: 2; }
.stats .container > .row { background: #fff; border-radius: 1rem; box-shadow: 0 12px 34px rgba(11, 42, 74, .15); padding: 1.2rem .5rem; margin: 0 0; }
.stats strong { display: block; font-family: 'Poppins', sans-serif; font-size: 1.8rem; color: var(--red); line-height: 1.2; }
.stats span { color: var(--muted); font-size: .9rem; }

/* sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--soft); }
.eyebrow { color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: .4rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.narrow { max-width: 36rem; }
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 2.8rem 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.breadcrumb { --bs-breadcrumb-divider-color: #9db7d1; font-size: .9rem; }
.breadcrumb a { color: var(--yellow); text-decoration: none; }
.breadcrumb-item.active { color: #c9d8e8; }

.director-card { background: var(--navy); color: #dbe7f3; border-radius: 1.2rem; padding: 2rem 2rem 1.6rem; margin: 0; position: relative; }
.director-card .bi-quote { font-size: 3.5rem; color: var(--yellow); line-height: 1; }
.director-card blockquote { font-size: 1.05rem; margin: 0 0 1rem; }
.director-card figcaption { color: var(--yellow); font-weight: 600; }

/* course cards */
.course-card { border: 0; border-radius: 1rem; overflow: hidden; box-shadow: 0 4px 18px rgba(11, 42, 74, .08); transition: transform .25s, box-shadow .25s; position: relative; }
.course-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(11, 42, 74, .18); }
.course-card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.course-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.course-card:hover .course-card-img img { transform: scale(1.06); }
.course-card .card-body { padding: 1.4rem 1.2rem .8rem; position: relative; }
.course-card .card-title a { color: var(--navy); text-decoration: none; }
.course-icon { position: absolute; top: -1.5rem; right: 1.2rem; width: 3rem; height: 3rem; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; font-size: 1.3rem; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.more-link { color: var(--blue); font-weight: 600; font-size: .9rem; }
.cta-card { background: linear-gradient(135deg, var(--red), #8f0000); color: #fff; }
.cta-card .bi, .cta-card h3 { color: #fff; }

/* course detail */
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding: .35rem 0 .35rem 2rem; }
.check-list li::before { content: '\F26A'; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: .3rem; color: var(--blue); }
.side-card { background: var(--soft); border-radius: 1rem; padding: 1.5rem; top: 6rem; }
.other-courses a { display: block; padding: .4rem 0; text-decoration: none; color: var(--navy); border-bottom: 1px solid #dbe3ec; }
.other-courses a:hover { color: var(--blue); }
.other-courses .bi { color: var(--red); margin-right: .4rem; }

/* testimonials */
.testimonial { background: #fff; border-radius: 1rem; padding: 1.6rem; margin: 0; box-shadow: 0 4px 18px rgba(11, 42, 74, .08); border-top: 4px solid var(--yellow); display: flex; flex-direction: column; }
.testimonial blockquote { flex: 1; font-size: .98rem; }
.testimonial .stars { color: #f5a300; margin-bottom: .6rem; }
.testimonial img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }

/* CTA + map */
.cta-band { background: linear-gradient(135deg, var(--red), #8f0000); color: #fff; padding: 3.5rem 0; }
.cta-band h2 { color: #fff; }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* contact + verify */
.contact-list li { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.contact-list .bi { width: 2.8rem; height: 2.8rem; flex: none; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; }
.contact-list strong { display: block; color: var(--navy); }
.verify-card { background: var(--navy); border: 3px solid #dfe8f3; border-radius: 1rem; padding: 1.6rem; color: #fff; max-width: 700px; }
.verify-card .form-label { color: #fff; }

/* footer */
.site-footer { background: var(--navy); color: #c4d3e3; }
.footer-brand { color: #fff; font-size: 1.1rem; }
.footer-title { font-size: 1rem; color: var(--yellow); margin-bottom: 1rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a, .site-footer a { color: #e5eef7; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.footer-links .bi { color: var(--yellow); margin-right: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }

/* floating buttons */
.float-wa { position: fixed; left: 1rem; bottom: 1rem; z-index: 1040; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); text-decoration: none; animation: pulse 2.4s infinite; }
.float-wa:hover { color: #fff; }
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 1040; width: 2.8rem; height: 2.8rem; border: 0; border-radius: 50%; background: var(--navy); color: #fff; display: none; place-items: center; }
.to-top.show { display: grid; }

/* motion */
html.js [data-reveal]:not(.in) { opacity: 0; transform: translateY(24px); }
[data-reveal] { transition: opacity .7s, transform .7s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 50% { transform: translateY(-12px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html.js [data-reveal]:not(.in) { opacity: 1; transform: none; }
}
@media (max-width: 575.98px) {
    .section { padding: 3rem 0; }
    .hero { padding: 3rem 0 4.5rem; }
    .stats strong { font-size: 1.4rem; }
}

.footer-links li, .contact-list span { overflow-wrap: anywhere; }
