/*
Theme Name: kjrggdc Child
Template: kjrggdc*/

:root {
    --primary-color: #263566;
    --primary-hover: #1b264a;
    --secondary-color: #f8f9fa;
    --accent-color: #ffc107;
    --text-color: #333;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: #f4f6f9;
}

/* Global Button Override */
.btn {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}
.btn:hover, .btn:focus {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(38, 53, 102, 0.2);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.85rem;
    padding: 5px 0;
}
.top-bar a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s;
}
.top-bar a:hover {
    color: var(--accent-color);
}
.top-bar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}
.top-bar-menu > li {
    display: inline-block;
    position: relative;
}
.top-bar-menu a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s, background-color 0.3s;
    display: inline-block;
}
.top-bar-menu a:hover {
    color: var(--accent-color);
}
.top-bar-menu-right {
    justify-content: flex-end;
}
.top-bar-menu-right > li > a {
    margin-right: 0;
    margin-left: 15px;
}

/* Top Bar Sub-menu */
.top-bar-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 180px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1050;
    border-top: 2px solid var(--accent-color);
}
.top-bar-menu-right .sub-menu {
    left: auto;
    right: 0;
}
.top-bar-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.top-bar-menu .sub-menu li {
    display: block;
}
.top-bar-menu .sub-menu a {
    display: block;
    margin: 0;
    padding: 8px 15px;
    font-size: 0.8rem;
}
.top-bar-menu .sub-menu a:hover {
    background-color: var(--primary-hover);
    color: var(--accent-color);
}

/* Caret for items with children */
.top-bar-menu .menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 0.75rem;
}
@media (max-width: 767px) {
    .top-bar-menu-right {
        justify-content: center;
    }
    .top-bar-menu-right a {
        margin-right: 7px;
        margin-left: 7px;
    }
}

/* Main Header */
.main-header {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}
.college-name-bengali {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}
.college-name-english {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}
.header-subtext {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.estd-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: var(--primary-hover);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(255, 152, 0, 0.3);
}

/* Navigation - WordPress Dynamic */
.custom-navbar {
    background-color: var(--primary-color);
    padding: 0;
}
.wp-custom-menu {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.wp-custom-menu > li {
    position: relative;
}
.wp-custom-menu a {
    color: white;
    padding: 15px 20px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}
.wp-custom-menu > li > a:hover,
.wp-custom-menu > li.current-menu-item > a {
    background-color: var(--primary-hover);
    color: var(--accent-color);
}

/* 2nd Level Sub-menu */
.wp-custom-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 240px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 100;
    border-top: 3px solid var(--accent-color);
}
.wp-custom-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.wp-custom-menu .sub-menu li {
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}
.wp-custom-menu .sub-menu li:last-child {
    border-bottom: none;
}
.wp-custom-menu .sub-menu a {
    color: var(--primary-color);
    padding: 12px 20px;
    text-transform: none;
    font-size: 0.95rem;
    font-weight: 400;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wp-custom-menu .sub-menu a:hover,
.wp-custom-menu .sub-menu li.current-menu-item > a {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 25px;
}

/* 3rd Level Sub-menu */
.wp-custom-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    border-top: none;
    border-left: 3px solid var(--accent-color);
}

/* Caret for items with children */
.wp-custom-menu .menu-item-has-children > a::after {
    content: '\f107'; /* FontAwesome down arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.8rem;
}
.wp-custom-menu .sub-menu .menu-item-has-children > a::after {
    content: '\f105'; /* FontAwesome right arrow */
    font-family: 'Font Awesome 6 Free';
}

/* Mobile responsive menu */
@media (max-width: 991px) {
    .wp-custom-menu {
        flex-direction: column;
    }
    .wp-custom-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        border-top: none;
        background-color: var(--primary-hover);
        min-width: 100%;
    }
    .wp-custom-menu .sub-menu .sub-menu {
        border-left: none;
        background-color: #151e3b;
    }
    .wp-custom-menu .sub-menu a {
        color: white;
    }
    .wp-custom-menu .sub-menu a:hover {
        background-color: rgba(255,255,255,0.05);
        color: var(--accent-color);
    }
    .wp-custom-menu .menu-item-has-children.open-submenu > .sub-menu {
        display: block;
    }
}

/* Hero Carousel */
.hero-carousel .carousel-item {
    height: 500px;
    background-color: #777;
    background-size: cover;
    background-position: center;
}
.carousel-caption {
    background: rgba(38, 53, 102, 0.7);
    padding: 20px;
    border-radius: 5px;
    bottom: 40px;
}

/* Sections */
.section-title {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 60px;
    background-color: var(--accent-color);
}

/* Notice Board */
.notice-board {
    background: white;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 20px;
    height: 100%;
}
.notice-tabs {
    background-color: #f1f3f8;
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 20px;
    display: flex;
    border: none;
}
.notice-tabs .nav-item {
    flex: 1;
}
.notice-tabs .nav-link {
    color: #555;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    padding: 8px 15px;
    border: none;
    background: transparent;
}
.notice-tabs .nav-link:hover {
    color: var(--primary-color);
}
.notice-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(38, 53, 102, 0.2);
}
.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.notice-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
}
.notice-list li:last-child {
    border-bottom: none;
}
.notice-list a {
    color: #444;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.notice-list a:hover {
    color: var(--primary-color);
}
.notice-date {
    display: block;
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}
.new-badge {
    background-color: #dc3545;
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* About Section */
.about-section {
    background: white;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 5px;
    /* height: 100%; */
}
.about-text {
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.course-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transition: height 0.3s;
    z-index: -1;
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.course-card:hover::after {
    height: 100%;
    opacity: 0.03;
}
.course-icon {
    width: 70px;
    height: 70px;
    background: rgba(38, 53, 102, 0.05);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: all 0.4s;
}
.course-card:hover .course-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}
.course-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}
.course-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
}
.course-btn {
    margin-top: auto;
    border-radius: 25px;
    padding: 8px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

/* Info Cards */
.info-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}
.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s;
}
.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.info-card:hover::before {
    opacity: 1;
}
.info-card .icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(38, 53, 102, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
}
.info-card:hover .icon-wrapper {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}
.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.4s;
}
.info-card:hover i {
    color: white;
}
.info-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}
.info-card .card-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.info-card .card-link i {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s;
    color: inherit;
}
.info-card:hover .card-link {
    color: var(--accent-color);
}
.info-card:hover .card-link i {
    transform: translateX(5px);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}
.footer-title {
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: white;
    padding-left: 5px;
}
.footer-contact p {
    margin-bottom: 10px;
    color: #ddd;
}
.footer-contact i {
    margin-right: 10px;
    color: var(--accent-color);
}
.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #bbb;
}
/* Logo Slider */
.logo-slider {
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    padding: 20px 0;
}
.logo-slider::before, .logo-slider::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    z-index: 2;
    top: 0;
}
.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, white 0%, rgba(255,255,255,0) 100%);
}
.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, white 0%, rgba(255,255,255,0) 100%);
}
.logo-slide-track {
    display: flex;
    width: calc(200px * 14);
    animation: scroll 30s linear infinite;
}
.logo-slide-track:hover {
    animation-play-state: paused;
}
.logo-slide-track-reverse {
    animation: scroll-reverse 30s linear infinite;
}
.logo-slide-track-reverse:hover {
    animation-play-state: paused;
}
.logo-slide {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}
.logo-slide img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}
.logo-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 7)); }
}
@keyframes scroll-reverse {
    0% { transform: translateX(calc(-200px * 7)); }
    100% { transform: translateX(0); }
}

/* Placement Cards */
.placement-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
}
.placement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.placement-img-wrapper {
    height: 200px;
    overflow: hidden;
}
.placement-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.placement-card:hover .placement-img {
    transform: scale(1.05);
}
.placement-info {
    padding: 20px;
}
.placement-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
}
.placement-course {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}
.placement-company {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
.placement-company img {
    max-width: 120px;
    max-height: 100%;
    object-fit: contain;
}
.placement-ctc {
    display: inline-block;
    background-color: rgba(38, 53, 102, 0.05);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
}

.wp-custom-menu a {
	padding: 10px 5px;
    font-size: 13px;
}