/* Core Variables */
:root {
    --primary-color: #01295C;
    --secondary-color: #018A9A;
    --text-dark: #000000;
    --bg-white: #ffffff;
    --light-gray: #f8f9fa;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Typography Utilities */
.text-primary-color { color: var(--primary-color) !important; }
.text-secondary-color { color: var(--secondary-color) !important; }

/* Navbar */
.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: 0.3s ease;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}
.dropdown-item:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

/* Hero Slideshow */
.hero-section {
    position: relative;
}
.carousel-item {
    height: 80vh;
    min-height: 500px;
}
.carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darkens image for text readability */
}
.carousel-caption {
    bottom: 0;
    text-align: center;
    padding-bottom: 50px;
}
.carousel-caption h1 {
    font-size: 4rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* Services */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border-bottom: 4px solid var(--secondary-color);
}
.icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.icon-wrapper i {
    font-size: 30px;
    color: var(--primary-color);
    transition: 0.3s;
}
.service-card:hover .icon-wrapper {
    background-color: var(--secondary-color);
}
.service-card:hover .icon-wrapper i {
    color: var(--bg-white);
}

/* Why Choose Us Animations */
.why-choose-icon {
    font-size: 50px;
    color: var(--secondary-color);
    transition: transform 0.4s ease-in-out;
}
.col-md-3:hover .why-choose-icon {
    transform: rotateY(180deg) scale(1.1);
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
}
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: var(--bg-white);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: 0.3s;
}
.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}
.footer-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: 0.3s;
}
.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}
.copyright-bar {
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .carousel-item {
        height: 60vh;
    }
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    .pl-lg-5 {
        padding-left: 15px !important;
        margin-top: 30px;
    }
}

/* --- NEW ADDITIONS FOR ABOUT US PAGE --- */

/* Page Header (Breadcrumb Section) */
.page-header {
    background: url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    height: 300px;
    position: relative;
}
.page-header .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(1, 41, 92, 0.85); /* primary color with opacity */
    z-index: 0;
}
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.7);
}

/* About Us Image & Badge */
.about-img-wrapper {
    z-index: 1;
}
.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    z-index: 2;
    border: 3px solid var(--bg-white);
}

/* Industrial Requirements Cards */
.req-card {
    border-left: 4px solid var(--secondary-color);
    transition: 0.3s ease;
}
.req-card:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color) !important;
}
.req-card:hover h5, .req-card:hover p, .req-card:hover .req-icon i {
    color: var(--bg-white) !important;
}
.req-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.req-icon i {
    font-size: 24px;
    color: var(--secondary-color);
}

/* Testimonial / Review Cards */
.review-card {
    border-top: 4px solid var(--primary-color);
    transition: 0.3s ease;
    overflow: hidden;
}
.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}
.review-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}
.quote-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 80px;
    color: rgba(1, 138, 154, 0.05); /* very faint secondary color */
    z-index: 0;
}
.review-card p {
    position: relative;
    z-index: 1;
}

/* --- NEW ADDITIONS FOR CONTACT US PAGE --- */

/* Pull up the contact cards to overlap the page header slightly */
.mt-neg-50 {
    margin-top: -50px;
}

/* Contact Info Cards */
.contact-info-card {
    border-bottom: 4px solid var(--secondary-color);
    transition: all 0.3s ease-in-out;
}
.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.15) !important;
}
.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(1, 138, 154, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.contact-icon-wrapper i {
    font-size: 32px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}
.contact-info-card:hover .contact-icon-wrapper {
    background: var(--secondary-color);
}
.contact-info-card:hover .contact-icon-wrapper i {
    color: var(--bg-white);
}

/* Contact Form Styling */
.form-floating > .form-control:focus ~ label {
    color: var(--secondary-color);
}
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(1, 138, 154, 0.25);
}
.form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: var(--bg-white);
}

/* Custom Submit Button */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 138, 154, 0.4);
}

/* Map Container Hover Effect */
.map-container {
    transition: all 0.3s ease;
    background: var(--bg-white);
}
.map-container:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* --- NEW ADDITIONS FOR ABROAD EDUCATION PAGE --- */

/* Country Cards & Flags */
.country-card {
    transition: transform 0.3s ease;
    cursor: pointer;
}
.country-card:hover {
    transform: translateY(-8px);
}
.country-card:hover h5 {
    color: var(--secondary-color) !important;
}
.flag-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--light-gray);
    transition: all 0.3s ease;
}
.country-card:hover .flag-img {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 20px rgba(1, 138, 154, 0.2) !important;
}

/* Top Courses Cards */
.course-card {
    border-top: 4px solid transparent;
    transition: all 0.3s ease;
}
.course-card:hover {
    border-top: 4px solid var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}
.course-icon {
    font-size: 40px;
    color: var(--secondary-color);
    transition: 0.3s ease;
}
.course-card:hover .course-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* Education Loan Section */
.bg-primary-color {
    background-color: var(--primary-color) !important;
}
.loan-section {
    border-radius: 15px;
}
.loan-img {
    min-height: 400px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}
.loan-features li {
    font-size: 1rem;
    font-weight: 300;
}
.btn-secondary-custom {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-secondary-custom:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Mobile Adjustments for Loan Section */
@media (max-width: 991px) {
    .loan-img {
        border-top-right-radius: 0;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }
}

/* --- NEW ADDITIONS FOR TRAINING PAGE --- */

/* Training Course Cards */
.training-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.training-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

/* Image Hover Zoom Effect */
.card-img-wrapper {
    height: 220px;
}
.card-img-wrapper img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.training-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

/* Course Link Animation */
.course-link i {
    transition: transform 0.3s ease;
}
.course-link:hover i {
    transform: translateX(5px);
}

/* Badge Tweaks */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- NEW ADDITIONS FOR INTERNSHIP PAGE --- */

/* Industrial Requirements Boxes */
.req-box {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}
.req-box:hover {
    border-left: 4px solid var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}
.req-icon-large i {
    transition: transform 0.3s ease;
}
.req-box:hover .req-icon-large i {
    transform: scale(1.1) rotate(-5deg);
}

/* Domain Cards */
.domain-card {
    background: var(--bg-white);
    border-top: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}
.domain-card:hover {
    background: var(--primary-color);
    transform: translateY(-8px);
}
.domain-card:hover h5, .domain-card:hover p {
    color: var(--bg-white) !important;
}
.domain-icon {
    width: 70px;
    height: 70px;
    background: rgba(1, 138, 154, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.domain-icon i {
    font-size: 32px;
    color: var(--secondary-color);
}
.domain-card:hover .domain-icon {
    background: rgba(255, 255, 255, 0.2);
}
.domain-card:hover .domain-icon i {
    color: var(--bg-white);
}

/* Benefits Section */
.benefit-box {
    transition: all 0.3s ease;
}
.benefit-box:hover {
    background: rgba(255,255,255,0.2) !important;
    transform: translateY(-5px);
}

/* Application Timeline */
.step-number {
    width: 60px;
    height: 60px;
    font-size: 24px;
    font-weight: bold;
    z-index: 2;
    transition: all 0.3s ease;
}
.step-box:hover .step-number {
    transform: scale(1.1);
    background-color: var(--secondary-color) !important;
}

/* Desktop horizontal connecting line for timeline */
@media (min-width: 992px) {
    .step-box::after {
        content: '';
        position: absolute;
        top: 30px; /* half of step-number height */
        right: -50%;
        width: 100%;
        height: 2px;
        background-color: #dee2e6;
        z-index: 1;
    }
    .step-box:last-child::after {
        display: none;
    }
}
/* --- UPDATED APPLICATION PROCESS TIMELINE --- */
.process-container {
    z-index: 1;
}

/* The dashed connecting line behind the cards */
.process-line {
    position: absolute;
    top: 60px; /* Aligns with the center of the icons */
    left: 12.5%; /* Centers between first and last card */
    width: 75%;
    height: 3px;
    background: repeating-linear-gradient(to right, var(--secondary-color) 0, var(--secondary-color) 10px, transparent 10px, transparent 20px);
    z-index: 0;
    opacity: 0.5;
}

/* Individual Process Cards */
.process-card {
    z-index: 2;
    border-bottom: 4px solid transparent;
    transition: all 0.4s ease;
    margin-top: 25px; /* Gives room for the icon to overlap slightly if needed */
}
.process-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--secondary-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Circular Icon Indicator */
.process-step-indicator {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 6px solid var(--bg-white); /* Creates a cutout effect over the dashed line */
    position: relative;
    z-index: 2;
    margin-top: -45px; /* Pulls the icon up halfway out of the card */
    transition: all 0.3s ease;
}
.process-card:hover .process-step-indicator {
    background-color: var(--secondary-color) !important;
    transform: scale(1.1) rotate(5deg);
}

/* Step Label Text */
.step-badge {
    font-size: 0.75rem;
    letter-spacing: 2px;
}

/* --- NEW ADDITIONS FOR CAREER SUPPORT PAGE --- */

/* Career Route Timeline */
.career-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px; /* Centers line inside the 60px width icon */
    width: 4px;
    background-color: #e9ecef;
    z-index: 1;
}
.timeline-step {
    position: relative;
    z-index: 2;
}
.timeline-icon {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-white);
    transition: all 0.3s ease;
}
.timeline-content {
    transition: transform 0.3s ease;
}
.timeline-step:hover .timeline-icon {
    transform: scale(1.1);
}
.timeline-step:hover .timeline-content {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Placements Features Cards */
.placement-card {
    border-top: 4px solid transparent;
    transition: all 0.3s ease;
}
.placement-card:hover {
    border-top-color: var(--secondary-color);
    background-color: var(--bg-white) !important;
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}
.placement-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(1, 41, 92, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.placement-icon i {
    font-size: 32px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}
.placement-card:hover .placement-icon {
    background-color: var(--primary-color);
}
.placement-card:hover .placement-icon i {
    color: var(--bg-white);
}

/* Utilities */
.mb-n4 {
    margin-bottom: -1.5rem !important;
}

/* --- NEW ADDITIONS FOR ROBOTICS PAGE --- */

/* Robotics Curriculum Cards */
.robotics-card {
    border: 1px solid #e9ecef;
    transition: all 0.4s ease;
}
.robotics-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 35px rgba(1, 138, 154, 0.2) !important;
}
.robotics-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-gray), #e0f7fa);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}
.robotics-icon i {
    font-size: 35px;
    color: var(--primary-color);
    transition: all 0.4s ease;
}
.robotics-card:hover .robotics-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: rotateY(180deg);
}
.robotics-card:hover .robotics-icon i {
    color: var(--bg-white);
}

/* Subtle futuristic glow effect on card hover */
.card-glow {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: var(--secondary-color);
    filter: blur(50px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}
.robotics-card:hover .card-glow {
    opacity: 0.15;
}
.robotics-card > * {
    position: relative;
    z-index: 1;
}

/* Projects Showcase */
.project-box {
    aspect-ratio: 1 / 1; /* Makes them perfect squares */
}
.project-box img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(1, 41, 92, 0.9) 0%, rgba(1, 41, 92, 0.2) 50%, transparent 100%);
    transition: all 0.4s ease;
}
.project-box:hover img {
    transform: scale(1.1);
}
.project-box:hover .project-overlay {
    background: linear-gradient(to top, rgba(1, 138, 154, 0.95) 0%, rgba(1, 138, 154, 0.4) 60%, transparent 100%);
}

/* --- NEW ADDITIONS FOR WORKSHOPS PAGE --- */

/* Workshop Event Cards */
.workshop-card {
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}
.workshop-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--secondary-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Image styling */
.workshop-img {
    height: 200px;
    overflow: hidden;
}
.workshop-img img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.workshop-card:hover .workshop-img img {
    transform: scale(1.1);
}

/* Floating Badge */
.workshop-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.75rem;
    z-index: 2;
}

/* Outline Custom Button */
.btn-outline-primary-custom {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.btn-outline-primary-custom:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateX(3px);
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    /* Pulse Animation */
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float i {
    margin-top: 2px; /* Slight optical adjustment for the icon */
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
}

/* Pulse Animation Keyframes */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile Adjustments for WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}