﻿/* Modern KPIT Styles - modern.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #f8fafc;
}

/* Header logo sizing */
.navbar-logo {
    height: clamp(48px, 7vw, 72px); /* min 48px, scales with viewport, max 72px */
    width: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
}

/* Give the navbar a bit more room so the bigger logo fits nicely */
nav.navbar-glass {
    min-height: 4.5rem;
}
/* ~72px */
nav .h-16 {
    height: auto;
}

/* Utility Classes */
.bg-gray-50 {
    background-color: #f8fafc;
}

.bg-white {
    background-color: #ffffff;
}

.bg-gray-900 {
    background-color: #0f172a;
}

.text-white {
    color: #ffffff;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-blue-600 {
    color: #2563eb;
}

.text-green-500 {
    color: #10b981;
}

.text-yellow-300 {
    color: #fde047;
}

.text-blue-100 {
    color: #dbeafe;
}

.max-w-7xl {
    max-width: 1280px;
}

.max-w-4xl {
    max-width: 896px;
}

.max-w-3xl {
    max-width: 768px;
}

.max-w-2xl {
    max-width: 672px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.text-8xl {
    font-size: 6rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-2xl {
    border-radius: 1rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.transition {
    transition: all 0.15s ease-in-out;
}

.transform {
    transform: translateZ(0);
}

.grid {
    display: grid;
}

.flex {
    display: flex;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.fixed {
    position: fixed;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.w-full {
    width: 100%;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.z-50 {
    z-index: 50;
}

/* Navigation Styles — colored gradient + readable links + underline reveal */
.navbar-glass {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    border-bottom: none;
    backdrop-filter: none;
    transition: background .3s ease, box-shadow .3s ease;
}

    /* Ensure header text reads well on colored nav */
    .navbar-glass .text-gray-700,
    .navbar-glass .text-gray-600 {
        color: #eef2ff;
    }

    /* Links in nav */
    .navbar-glass .nav-link {
        position: relative;
        color: #e6eaff; /* light indigo */
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        border-radius: .5rem;
        transition: color .2s ease, background-color .2s ease;
    }

        .navbar-glass .nav-link:hover,
        .navbar-glass .nav-link:focus {
            color: #ffffff;
            background: rgba(255,255,255,.08);
            outline: none;
        }

        /* Underline animation + active state */
        .navbar-glass .nav-link::after {
            content: "";
            position: absolute;
            left: .75rem;
            right: .75rem;
            bottom: .3rem;
            height: 2px;
            background: linear-gradient(90deg, #fbbf24, #ffffff);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform .22s ease;
        }

        .navbar-glass .nav-link:hover::after,
        .navbar-glass .nav-link:focus::after,
        .navbar-glass .nav-link.active::after,
        .navbar-glass .nav-link[aria-current="page"]::after {
            transform: scaleX(1);
        }

    /* CTA in the colored header */
    .navbar-glass .cta-button {
        border: 1px solid rgba(255,255,255,.25);
        box-shadow: 0 6px 18px rgba(0,0,0,.15);
    }

    /* Elevation when scrolled (if JS adds .shadow-lg) */
    .navbar-glass.shadow-lg {
        box-shadow: 0 8px 28px rgba(2,6,23,.18);
    }

/* Mobile menu panel ties to header tone */
.mobile-menu {
    border-top: 1px solid rgba(102,126,234,.25);
    background: #ffffff;
}

/* Mobile Nav Links */
.mobile-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #374151;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
    border-radius: .5rem;
}

    .mobile-nav-link:hover {
        color: #111827;
        background: rgba(37,99,235,.08);
    }

.mobile-menu-button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
/* Hero Section */
.hero-gradient {
    background: radial-gradient(1200px 600px at 10% 10%, rgba(255,255,255,.08) 0%, transparent 60%), linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    min-height: min(92vh, 860px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
    .hero-gradient::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ffffff14'/%3E%3C/svg%3E");
        opacity: .35;
    }

.hero-title {
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-visual {
    position: relative;
}
.hero-card {
    width: 20rem;
    height: 20rem;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 1.5rem;
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.35);
}
.hero-badge {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 6rem;
    height: 6rem;
    background-color: #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-20px)
    }
}

/* Button Styles */
.cta-button {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    border: none;
    padding: .5rem 1.5rem;
    border-radius: 9999px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(37,99,235,.4);
    }
.cta-primary {
    background-color: #fbbf24;
    color: #1e3a8a;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

    .cta-primary:hover {
        background-color: #f59e0b;
        transform: translateY(-2px) scale(1.05);
    }

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

    .cta-secondary:hover {
        background-color: white;
        color: #1e3a8a;
        transform: translateY(-2px);
    }

/* Stats Section */
.stats-counter {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: .5rem;
}
.text-accent-gold {
    color: #fbbf24;
}
/* Section Padding */
.section-padding {
    padding: 5rem 0;
}

/* Course Cards */
.course-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148,163,184,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.course-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.diploma-gradient {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.certificate-gradient {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.artisan-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.tradetest-gradient {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.course-list ul {
    list-style: none;
    padding: 0;
}

.course-item {
    display: flex;
    align-items: center;
    color: #374151;
    margin-bottom: .75rem;
}

.course-link {
    color: #374151;
    text-decoration: none;
    transition: color .15s ease;
}

    .course-link:hover {
        color: #2563eb;
    }

.course-button {
    width: 100%;
    color: white;
    border: none;
    padding: .75rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .3s ease;
}

    .course-button:hover {
        opacity: .9;
    }

/* Feature Items */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-purple-100 {
    background-color: #e9d5ff;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: .5rem;
}

.feature-desc {
    color: #6b7280;
}

/* Why Choose Visual */
.why-choose-visual {
    position: relative;
}

.visual-card {
    width: 24rem;
    height: 24rem;
    margin: 0 auto;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-inner {
    width: 20rem;
    height: 20rem;
    background-color: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotate-3 {
    transform: rotate(3deg);
}

.-rotate-6 {
    transform: rotate(-6deg);
}

/* Testimonials */
.testimonial-card {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    background-color: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

/* Footer */
.social-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: background-color .3s ease;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color .3s ease;
}

    .footer-link:hover {
        color: white;
    }

.contact-info {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid.lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .grid.lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .gap-16 {
        gap: 2rem;
    }
}
/* Tailwind-like behavior: only change layout at ≥768px */
@media (min-width: 768px) {
    .hidden.md\:block {
        display: block;
    }
    /* show desktop nav */
    .md\:hidden {
        display: none;
    }
    /* hide mobile elements on desktop */
}

/* Ensure JS toggle works on mobile */
.mobile-menu.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    /* Keep header logo “a little larger” on phones */
    .navbar-logo {
        height: 56px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stats-counter {
        font-size: 2rem;
    }

    .text-4xl {
        font-size: 2rem;
    }

    .text-6xl {
        font-size: 3rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .grid.md\:grid-cols-2,
    .grid.md\:grid-cols-3,
    .grid.md\:grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .flex-col.sm\:flex-row {
        flex-direction: column;
    }

    .hero-card {
        width: 16rem;
        height: 16rem;
    }

    .visual-card {
        width: 20rem;
        height: 20rem;
    }

    .visual-inner {
        width: 16rem;
        height: 16rem;
    }
}

@media (max-width: 640px) {
    .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .text-center.lg\:text-left {
        text-align: center;
    }

    .justify-center.lg\:justify-start {
        justify-content: center;
    }

    .grid.grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .grid.lg\:grid-cols-4.gap-8 {
        gap: 2rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus, a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
.plain-symbol {
    color: #1e3a8a; /* solid fallback color */
}
.plain-symbol { color: #1e3a8a; }
/* Make room for the fixed nav on all pages */
main {
  padding-top: 88px; /* default fallback for desktops */
}

/* On small screens the nav is taller; increase the offset */
@media (max-width: 768px) {
  main {
    padding-top: 104px; /* tune to your actual mobile nav height */
  }

  /* If you use the slide-down mobile menu, start it below the nav */
  .mobile-menu {
    position: fixed;
    top: 104px;           /* same as main padding-top */
    left: 0;
    right: 0;
    z-index: 49;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(2,6,23,.15);
  }
}

