/* ======================================================
   GLOBAL RESET
====================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    background: #f5f6fa;
    color: #333;
    overflow-x: hidden;
}


/* ======================================================
   TOP BAR
====================================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #0a3d62;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

.top-left {
    font-size: 14px;
    font-weight: bold;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.helpline-flash {
    font-weight: 800;
    /*color: #fbc531;*/
    color: #fffaaa;
    animation: flashHelpline 1.2s infinite;
}

@keyframes flashHelpline {
    0% { opacity: 1; }
    50% { opacity: 0.25; }
    100% { opacity: 1; }
}

.top-login {
    background: #ffdd59;
    color: #0a3d62;
    padding: 6px 12px;
    font-weight: bold;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
}

.top-login:hover {
    background: #ffc107;
}

.top-home {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffdd59;
    color: #0a3d62;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* ======================================================
   SOCIAL ICONS
====================================================== */
.social-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #0a3d62;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon.fb { color: #1877f2; }
.social-icon.insta { color: #e84393; }

/* ======================================================
   HEADER
====================================================== */
.header {
    position: fixed;
    top: 40px;
    width: 100%;
    height: 80px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 950;
}

.logo img {
    height: 75px;
    widht: 120px;
}


/* ======================================================
   MENU
====================================================== */
.menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-btn,
.menu-dropdown > a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #0a3d62;
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s;
}

.menu-btn:hover,
.menu-dropdown > a:hover {
    background: #0a3d62;
    color: #fff;
}

.menu-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.menu-dropdown .dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 230px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    padding: 6px 0;
    display: none;
    z-index: 999;
}

.menu-dropdown:hover .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    background: #0a3d62;
    color: #fff;
}

/* ======================================================
   UPDATE BAR
====================================================== */
.update-bar {
    position: fixed;
    top: 120px;
    width: 100%;
    height: 34px;
    background: #ffdd59;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 900;
}

.update-text {
    white-space: nowrap;
    font-weight: bold;
    padding-left: 100%;
    animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* ======================================================
   MAIN LAYOUT
====================================================== */
.container {
    max-width: 1200px;
    margin: 200px auto 50px;
    padding: 0 20px;
}

.home-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.home-text {
    max-width: 48%;
    padding-top: 10px;
}

.home-text h1 {
    font-size: 34px;
    color: #0a3d62;
    margin-bottom: 8px;
}

.home-text h3 {
    color: #555;
    font-weight: normal;
    margin-bottom: 15px;
}

.home-text p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.primary-btn {
    display: inline-block;
    margin-right: 10px;
    background: #0a3d62;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.primary-btn:hover {
    background: #0652DD;
}

/* ======================================================
   About Concept
====================================================== */


.about-concept {
    width: 100%;
    padding: 60px 20px;
    background: #f7f9fc;
}

.about-container {
    max-width: 1100px;
    margin: auto;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #0b3c5d;
    margin-bottom: 25px;
    font-weight: 700;
}

.about-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 18px;
    text-align: justify;
}

.vision-mission {
    display: flex;
    gap: 25px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.vm-card {
    flex: 1;
    min-width: 280px;
    background: #ffffff;
    padding: 25px;
    border-left: 5px solid #0b3c5d;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 6px;
}

.vm-card h3 {
    margin-bottom: 12px;
    color: #0b3c5d;
    font-size: 20px;
}

.vm-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* ======================================================
   IMAGE SLIDER
====================================================== */
.image-flip-frame {
    width: 460px;
    height: 460px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    position: relative;
    margin-top: -20px;
}

.flip-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    opacity: 0;
    animation: fadeSlider 28s infinite;
}

.img1 { animation-delay: 0s; }
.img2 { animation-delay: 4s; }
.img3 { animation-delay: 8s; }
.img4 { animation-delay: 12s; }
.img5 { animation-delay: 16s; }
.img6 { animation-delay: 20s; }
.img7 { animation-delay: 24s; }

@keyframes fadeSlider {
    0% { opacity: 0; }
    5% { opacity: 1; }
    20% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}

/* ======================================================
   Program Section
====================================================== */
.programs-section {
    background: #f8f9fc;
    padding: 70px 20px;
}

.program-row {
    max-width: 1200px;
    margin: 0 auto 70px;
    text-align: center;
}

.program-title {
    font-size: 34px;
    font-weight: 800;
    color: #0a3d62;          /* strong institute blue */
    letter-spacing: 1px;
    position: relative;
    margin-bottom: 25px;
}

/* subtle underline accent */
.program-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #0a3d62, #0652DD);
    margin: 10px auto 0;
    border-radius: 2px;
}


/* COURSE LIST */
.course-list {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

/* COURSE ITEM */
.course-item {
    width: 165px;              /* controlled width to keep single row */
    min-height: 250px;         /* taller card for clarity */
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.course-item:hover {
    transform: translateY(-6px);
}

.course-item img {
    width: 100%;
    height: 150px;             /* increased height */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.course-item p {
    font-size: 17px;
    font-weight: bold;
    color: #0a3d62;
    margin-top: 5px;
}

/* SEE MORE */
.see-more {
    display: inline-block;
    margin-top: 25px;
    font-weight: bold;
    text-decoration: none;
    color: #0a3d62;
    font-size: 16px;
}

.see-more:hover {
    color: #0652DD;
}


/* ======================================================
   FACULTY TESTIMONIALS
====================================================== */

.faculty-testimonials {
    padding: 10px 6% 50px;
    background: #f7f9fc;
    text-align: center;
}

/* Wrapper to hold arrows */
.testimonial-wrapper {
    position: relative;
}

/* Scroll container */
.testimonial-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
}

/* Hide scrollbar */
.testimonial-container::-webkit-scrollbar {
    display: none;
}
.testimonial-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Testimonial Card */
.testimonial-card {
    min-width: 320px;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
}

.testimonial-card img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.testimonial-card h3 {
    margin: 10px 0 5px;
    color: #0b3c91;
}

.designation {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

/* ===== SCROLL ARROWS ===== */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0a3d62;
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.scroll-btn:hover {
    background: #0652DD;
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn.left {
    left: -20px;
}

.scroll-btn.right {
    right: -20px;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
    .scroll-btn {
        display: none;
    }
}


/* ======================================================
   FOOTER
====================================================== */
.site-footer {
    background: #0a3d62;
    color: #fff;
    font-size: 13px;
}

/* Main container */
.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 25px 20px 15px;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* LEFT | MIDDLE | RIGHT */
    gap: 40px;
}



/* Titles */
.footer-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffdd59;
}

/* Text spacing */
.footer-left p,
.footer-right p {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Icons */
.footer-left i,
.footer-right i {
    margin-right: 6px;
    color: #ffdd59;
}

/* Map link */
.footer-map-link {
    margin-top: 6px;
    font-size: 14px;
}

.footer-map-link a {
    color: #ffd700;
    font-weight: 600;
    text-decoration: none;
}

.footer-map-link a:hover {
    text-decoration: underline;
}

/* ===== MIDDLE LINKS ===== */

.footer-middle {
    flex: 1;
    margin-left: 50px; /* adjust: 15–30px if needed */
    
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    font-size: 14px;
    color: #dbe6ff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffcc00;
    text-decoration: underline;
}

/* ===== SOCIAL SECTION FIX ===== */
.footer-social-title {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* 🔑 prevents breaking alignment */
    gap: 8px;
}

.footer-inline-icon {
    margin-left: 4px;
}

/* Bottom bar */
.footer-bottom {
    text-align: center;
    padding: 8px;
    background: #072c4a;
    font-size: 12px;
}

/* ======================================================
   WHATSAPP BUTTON
====================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 28px rgba(37,211,102,0.5);
    color: #ffffff;
}



/* ======================================================
   HAMBURGER MENU
====================================================== */
/* ===============================
   HAMBURGER ICON
================================ */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background-color: #0a3d62;
    border-radius: 3px;
    transition: all 0.3s ease;
}


/* ===============================
   MOBILE MENU CONTAINER
================================ */

.mobile-menu {
    position: fixed;
    top: 120px; /* header + update bar height */
    left: 0;
    width: 100%;
    height: calc(100vh - 120px);
    background: #ffffff;
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    z-index: 9999;
}


/* ===============================
   MOBILE MENU LINKS
================================ */

.mobile-menu a,
.mobile-dropdown button {
    display: block;
    width: 100%;
    padding: 12px 10px;
    font-size: 15px;
    font-weight: 600;
    color: #0a3d62;
    background: none;
    border: none;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}


/* ===============================
   MOBILE SUBMENU
================================ */

.mobile-submenu {
    display: none;
    padding-left: 15px;
    background-color: #f5f6fa;
}

.mobile-submenu a {
    font-size: 14px;
    font-weight: 500;
}


/* ===============================
   ACTIVE / OPEN STATES
================================ */

.mobile-menu.open {
    display: flex !important;
}


/* ===============================
   RESPONSIVE BEHAVIOR
================================ */

/* MOBILE VIEW */
@media (max-width: 992px) {

    /* Hide desktop menu only */
    .menu {
        display: none !important;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
    }
}

/* DESKTOP VIEW */
@media (min-width: 993px) {

    /* Ensure mobile elements never show */
    .hamburger,
    .mobile-menu {
        display: none !important;
    }
}




/* RESPONSIVE */
@media (max-width: 768px) {
    .course-item {
        width: 150px;
    }

    .program-title {
        font-size: 26px;
    }
}


/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 992px) {
    .home-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* MOBILE */
@media (max-width: 768px) {

    /* Home layout */
    .home-layout {
        flex-direction: column;
        text-align: center;
    }

    .home-text {
        max-width: 100%;
    }

    .image-flip-frame {
        width: 100%;
        height: 360px;
        margin-top: 20px;
    }

    /* Programs */
    .programs-wrapper {
        flex-direction: column;
    }

    .programs-sidebar {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
    }

    .program-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .program-list {
        grid-template-columns: 1fr;
    }
    
    .program-title {
        font-size: 26px;
    }

    .course-item {
        width: 150px;
    }


    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 25px;
    }

    .footer-hit-counter {
        justify-content: center;
        text-align: center;
    }
}

/* TABLET */
@media (min-width: 769px) and (max-width: 1024px) {

    .program-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* LARGE SCREENS */
@media (min-width: 1400px) {

    .footer-container,
    .programs-wrapper,
    .about-wrapper,
    .ctp-container {
        max-width: 1300px;
        margin: auto;
    }
}

