/* Moved from index.php */
.nav-pills .nav-link {
    color: #064167;
    background-color: transparent;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: #064167;
    color: white;
}

.nav-pills .nav-link:hover {
    background-color: #085277;
    color: white;
}

.tab-content {
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

.course-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.course-icon {
    width: auto;
    height: auto;
    font-size: 2.5em;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px auto;
    image-rendering: auto;
}

.course-title {
    color: #064167;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

.course-section-title {
    color: #064167;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #064167;
}

.dynamic-content {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    position: relative;
}

.list-text-bullet {
    list-style: none;
    padding: 0;
}

.list-text-bullet li, .list-text-bullet li a {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.list-text-bullet li {
    margin-bottom: 10px;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.list-text-bullet li a {
    text-decoration: none;
    color: #064167;
    display: block;
}

.list-text-bullet li a:hover {
    color: #085277;
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.newsletter-form {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}

.sb-topnav {
    background: white;
}

.admin-link {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: #064167;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.admin-link:hover {
    background: #085277;
    color: white;
    text-decoration: none;
}

#layoutSidenav #layoutSidenav_content {
    margin-left: unset !important;
}

a {
    cursor: pointer;
}

.box-shadow {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bg-white {
    background-color: white !important;
}

.courses {
    padding: 15px;
}

.notification1 {
    padding: 15px;
}

.h-400 {
    height: 400px;
}

.tab-heading {
    font-size: 12px;
    margin: 0;
}

.inner-item {
    font-size: 14px;
}

.logo-img, .logo-img1 {
    max-height: 80px;
}

.firstLine {
    font-size: 18px;
    font-weight: bold;
}

.secondLine {
    font-size: 16px;
}

@media (max-width: 1200px) {
    header > div {flex-direction: column;align-items: flex-start !important;gap: 10px;}
    header [style*="text-align:right;"] {text-align: left !important;}
    header [style*="padding-left:40px;"] {padding-left:10px !important;}
    header [style*="padding-right:40px;"] {padding-right:10px !important;}
}
@media (max-width: 600px) {
    header > div {width: 100% !important; padding: 5px 0 !important;}
    header span[style*="font-size:2em;"] {font-size: 1.2em !important;}
    header img[alt="CET Logo"], header img[alt="Emblem"], header img[alt="Study in India"] {height: 35px !important;}
    header button {padding: 7px 12px !important; font-size: 0.9em !important;}
    .notification1, .bg-white, .tab-content, .dynamic-content {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100vw !important;
    }
    .dynamic-content {
        max-height: 150px;
    }
}

/* Footer styles */
.footer-top1 {
    background: linear-gradient(180deg, #2c5f7e 0%, #1e4f72 100%);
    color: white;
    padding: 25px 0 15px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.footer-top1 h5 {
    color: #5dade2;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
    font-family: Arial, sans-serif;
}

.footer-top1 a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    font-family: Arial, sans-serif;
    transition: color 0.3s ease;
}

.visitor-counter {
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.visitor-counter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
}

.visitor-counter span {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .footer-top1 {
        padding: 20px 0 12px 0 !important;
    }
    .footer-top1 h5 {
        font-size: 15px !important;
        margin-bottom: 12px !important;
    }
    .footer-top1 .row {
        margin-bottom: 15px !important;
    }
    .visitor-counter span {
        font-size: 20px !important;
        letter-spacing: 1.5px !important;
    }
    .visitor-counter {
        padding: 6px 12px !important;
    }
}
@media (max-width: 768px) {
    .footer-top1 {
        padding: 18px 0 10px 0 !important;
    }
    .footer-top1 h5 {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    .footer-top1 .row {
        margin-bottom: 12px !important;
    }
    .footer-policy {
        padding: 8px 0 !important;
    }
    .footer-policy div {
        line-height: 1.8 !important;
    }
    .footer-policy a {
        display: inline-block !important;
        margin: 2px 2px !important;
        font-size: 11px !important;
    }
    .footer-policy span {
        font-size: 11px !important;
        margin: 0 2px !important;
    }
    .visitor-counter span {
        font-size: 18px !important;
        letter-spacing: 1px !important;
    }
    .visitor-counter {
        padding: 5px 10px !important;
    }
    .col-sm-4 {
        margin-bottom: 15px;
    }
    .footer-top1 p,
    .footer-top1 li a {
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }
    .text-center p {
        margin-top: 10px !important;
        font-size: 11px !important;
    }
}

.course-nav-tabs .nav-link {
    transition: all 0.3s ease !important;
}

.course-nav-tabs .nav-link:hover {
    background: rgba(255,255,255,0.15) !important;
    transform: translateY(-2px);
}

.course-nav-tabs .nav-link.active {
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
}

.modern-course-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    border-color: #007bff !important;
}

.modern-course-card:hover i {
    transform: scale(1.1);
}

.tab-content::-webkit-scrollbar {
    width: 6px;
}

.tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tab-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.scroller:hover {
    background: rgba(0,0,0,0.3) !important;
}

.course-nav-tabs .list::-webkit-scrollbar {
    display: none;
}

.tab-pane {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-pane.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .modern-course-card {
        min-height: 100px !important;
        padding: 15px !important;
    }
    .modern-course-card i {
        font-size: 24px !important;
    }
}

/* Standardize icon size and spacing for all modern course cards */
.modern-course-card i,
.modern-course-card .course-icon {
    font-size: 30px !important;
    margin-bottom: 10px !important;
    display: inline-block;
}

/* Reusable large icon class for course lists (works for icon fonts and SVGs) */
.course-icon-large {
  font-size: 1.5em;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  display: inline-block;
  margin-right: 0.5em;
}
