/* =========================================
   KYP Management System - Premium Theme
   Design: Material / Creative / Elegant
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary: #ea8219;
    --primary-dark: #dc650b;
    --primary-light: #e3f2fd;
    --secondary: #2f3c6b;
    /* Navy */
    --accent: #ffd700;
    /* Gold */
    /* Functional Colors */
    --success: #2e7d32;
    --warning: #ed6c02;
    --danger: #d32f2f;
    --info: #0288d1;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;

    /* Typography Colors */
    --text-main: #1e1e1e;
    --text-muted: #616161;
    --text-light: #9e9e9e;

    /* Shadows (Material Design 3 Elevation) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ================= Base Styles ================= */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--light-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ================= Buttons ================= */
.btn {
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(33, 117, 186, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(33, 117, 186, 0.3);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--white);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* ================= Navigation ================= */
.top-bar {
    background-color: #213d61;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 15px;
}

.top-bar a:hover {
    color: var(--white);
}

.navbar {
    padding: 15px 0;
    transition: all 0.3s;
    background: var(--white);
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    color: var(--secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0 15px !important;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 15px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 30px);
}

.nav-apply-btn {
    background: linear-gradient(45deg, var(--primary), #d45b0a);
    border: none;
    /* box-shadow: 0 4px 15px rgba(33, 117, 186, 0.3); */
}

/* ================= Hero Slider ================= */
.hero-slider-section {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    height: 470px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    /* Base overlay */
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.slide-content {
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
    text-align: center;
}

.slide-badge {
    display: inline-block;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.slide-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.slide-content h1 span {
    color: var(--accent);
    background: linear-gradient(120deg, #ffd700, #ffca28);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.owl-nav {
    display: none;
    /* Custom styling later if needed */
}

.owl-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
}

.owl-dot span {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4) !important;
    margin: 5px 7px !important;
    transition: all 0.3s;
}

.owl-dot.active span {
    background: var(--white) !important;
    transform: scale(1.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= Highlights ================= */
.highlights {
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.highlight-card {
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
}

.highlight-card:hover {
    transform: translateY(-10px);
}

.highlight-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    transition: all 0.3s;
}

.highlight-card:hover .highlight-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(360deg);
}

/* ================= About Section ================= */
.about-overview {
    padding: 80px 0;
    background-color: var(--white);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-list li {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--secondary);
}

.feature-list i {
    color: var(--success);
    margin-right: 10px;
    font-size: 1.2rem;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

/* ================= Mission & Vision ================= */
.mission {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.mission-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 100%;
}

.mission-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: transparent;
}

.mission-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.8;
}

.mission-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ================= Training Centers ================= */
.centers-section {
    padding: 80px 0;
    background: var(--white);
}

.centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.center-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
    text-align: center;
}

.center-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.center-card img {
    height: 60px;
    margin-bottom: 15px;
}

.center-icon {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* ================= Gallery ================= */
.gallery-section {
    padding: 80px 0;
    background: #f0f2f5;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
}

/* ================= Testimonials ================= */
.testimonials {
    padding: 80px 0;
    background: var(--white);
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 10px;
    box-shadow: var(--shadow-sm);
}

.testimonial-content i {
    color: var(--primary);
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 15px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-muted);
}

.testimonial-author h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary);
}

.testimonial-author p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* ================= Call to Action ================= */
.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ================= Footer ================= */
.footer {
    background-color: #1a1f36;
    /* Dark Navy */
    color: #a0aec0;
    padding-top: 60px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.footer a {
    color: #a0aec0;
    display: block;
    margin-bottom: 10px;
}

.footer a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ================= Team Section ================= */
.team-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft premium shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(33, 117, 186, 0.15);
}

.team-img {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 117, 186, 0.6);
    /* Primary semi-transparent */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #fff;
    color: var(--primary);
    border-radius: 50%;
    margin: 0 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--secondary);
    color: #fff;
}

.team-info {
    padding: 20px;
}

.team-info h5 {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--secondary);
}

.team-info .designation {
    color: #ea8219;
    /* Primary Accent */
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ================= Courses Page ================= */
.custom-tabs .nav-link {
    border-radius: 50px;
    padding: 10px 25px;
    margin: 0 5px;
    color: var(--secondary);
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.custom-tabs .nav-link.active {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(234, 130, 25, 0.3);
}

.custom-tabs .nav-link:hover:not(.active) {
    background-color: #f1f1f1;
}

.course-module-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    height: 100%;
}

.course-module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(234, 130, 25, 0.2);
}

.course-module-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.bg-primary-light {
    background-color: rgba(234, 130, 25, 0.1);
}

.bg-info-light {
    background-color: rgba(2, 136, 209, 0.1);
}

.bg-secondary-light {
    background-color: rgba(47, 60, 107, 0.1);
}

.hover-lift {
    transition: transform 0.3s, box-shadow 0.3s;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md) !important;
}

.scheme-card {
    transition: all 0.3s ease;
}

.scheme-card:hover {
    transform: translateY(-5px);
    border-top: 4px solid var(--primary) !important;
}

/* Timeline */
.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}

.timeline-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
    background: transparent;
    text-align: center;
    max-width: 200px;
    padding: 0 10px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 0 0 5px #fff;
    /* Gap effect */
}

/* ================= Responsive ================= */
@media (max-width: 768px) {
    .timeline-steps {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
    }

    .timeline-steps::before {
        top: 0;
        bottom: 0;
        left: 39px;
        width: 2px;
        height: auto;
    }

    .timeline-step {
        display: flex;
        align-items: center;
        text-align: left;
        margin-bottom: 20px;
        max-width: 100%;
        background: #f8f9fa;
        /* Match background */
        padding: 10px;
    }

    .step-circle {
        margin: 0 15px 0 0;
    }

    .hero-slide {
        height: 500px;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* ================= Utilities ================= */
.letter-spacing-1 {
    letter-spacing: 1px;
}

.opacity-85 {
    opacity: 0.85;
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .highlight-grid {
        grid-template-columns: 1fr;
    }
}

.form-container {
    padding: 30px;
    background: #fff;
    margin: 0 0 37px 0;
}

.form-grid {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
}

label {
    display: block;
}

button,
input,
optgroup,
select {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    width: 100%;
    height: 40px;
    padding: 6px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.form-grid .form-group {
    padding: 0 10px;
    margin: 0 0 10px 0;
}

textarea {
    height: auto;
    min-height: 100px;
}

.navbar-toggler {
    width: auto;
}