/* HP-style layout for steam boiler training site */
:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --text-primary: #1a1a2e;
    --text-secondary: #555;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a2e;
    background: #fff;
    line-height: 1.5;
}

/* Navbar - shared across all pages */
.navbar-hp {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px clamp(16px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.navbar-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
.navbar-logo img {
    height: 100px;
    display: block;
}
.navbar-links {
    display: flex;
    list-style: none;
    gap: clamp(20px, 3vw, 40px);
    margin: 0 0 0 auto;
    padding: 0;
    flex-shrink: 0;
    align-items: center;
}
.navbar-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.325rem;
    line-height: 1.0;
}
.navbar-links a:hover,
.navbar-links a.active {
    color: #0066cc;
}
.navbar-links a.active {
    border-bottom: 3px solid #0066cc;
    padding-bottom: 4px;
}

/* Hamburger - hidden on desktop */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-toggle.open .navbar-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggle.open .navbar-toggle-bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.open .navbar-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.navbar-overlay {
    display: none;
}

/* Mobile navbar - slide in from right */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
        margin-left: auto;
        flex-shrink: 0;
    }

    .navbar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 98;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .navbar-overlay.open {
        display: block;
        opacity: 1;
    }

    .navbar-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        flex-direction: column;
        gap: 0;
        margin-left: 0;
        background: #fff;
        padding: 80px 24px 32px;
        box-shadow: -4px 0 24px rgba(0,0,0,0.12);
        z-index: 99;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .navbar-links.open {
        transform: translateX(0);
    }

    .navbar-links li {
        border-bottom: 1px solid #eee;
    }

    .navbar-links li:last-child {
        border-bottom: none;
    }

    .navbar-links a {
        display: block;
        padding: 16px 0;
        font-size: 1.325rem;
        font-weight: 600;
    }

    .navbar-links a.active {
        border-bottom: none;
        padding-bottom: 16px;
    }

    .navbar-inner {
        position: relative;
        justify-content: space-between;
    }
}

/* Video Hero - HP style with clickable play */
.video-hero {
    position: relative;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile: full width so wider image is fully visible (no repeat) */
@media (max-width: 768px) {
    .video-hero {
        background-size: 100% auto;
        background-repeat: no-repeat;
        min-height: 40vh;
    }
}

.video-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}
.video-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}
.video-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-top: 80px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.video-play-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s, opacity 0.2s;
}
.video-play-btn:hover {
    transform: scale(1.08);
    opacity: 0.9;
}
.video-play-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.video-modal.open {
    display: flex;
}
.video-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 1;
}
.video-modal-close:hover { opacity: 0.8; }
.video-modal-inner {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
}
.video-modal-inner iframe {
    width: 100%;
    height: 100%;
}

/* Hero Section - Our Training (matches About Us style) */
.hero-cards-section {
    padding: 72px 24px 88px;
    background: #fff;
}
.hero-cards-title {
    font-size: clamp(1.625rem, 3.5vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 12px 0;
    color: #1a1a2e;
    letter-spacing: -0.02em;
}
.hero-cards-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #c41e3a;
    margin: 20px auto 0;
    border-radius: 2px;
}
.hero-cards-section .hero-cards-grid {
    margin-top: 48px;
}
.hero-cards-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.hero-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.hero-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #e8e8e8;
}
.hero-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hero-card-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a2e;
    letter-spacing: -0.01em;
}
.hero-card-body p {
    font-size: 1rem;
    color: #5a6575;
    margin-bottom: 16px;
    line-height: 1.8;
    flex: 1;
}
.hero-card-body span {
    color: #c41e3a;
    font-weight: 600;
    font-size: 0.95rem;
}
.hero-card:hover .hero-card-body span {
    color: #9e1830;
}

/* About Us - Clean & professional */
.leading-section {
    padding: 72px 24px 20px;
    background: #fff;
    text-align: center;
}

.leading-section h2 {
    font-size: clamp(1.625rem, 3.5vw, 2rem);
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #1a1a2e;
    letter-spacing: -0.02em;
}

.leading-section h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #c41e3a;
    margin: 20px auto 0;
    border-radius: 2px;
}

.leading-section .leading-section-text {
    max-width: 1000px;
    margin: 0 auto 36px;
}

.leading-section .leading-section-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #5a6575;
    margin: 0 0 16px 0;
}

.leading-section .leading-section-text p:last-child {
    margin-bottom: 0;
}

.leading-section .btn-primary {
    display: inline-block;
    background: #c41e3a;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.leading-section .btn-primary:hover {
    background: #9e1830;
}

/* Footer */
.site-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 32px 24px;
    text-align: center;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-copyright { font-size: 0.9rem; margin-bottom: 4px; }
.footer-tagline { font-size: 0.85rem; opacity: 0.85; }

/* WhatsApp floating button - shared across pages */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
}
.whatsapp-float:hover {
    background: #20bd5a;
    color: #fff;
}
.whatsapp-float svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .hero-cards-grid { grid-template-columns: 1fr; }
}
