@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0056b3;
    --secondary-color: #007bff;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.py-5 {
    padding: 3rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--secondary-color);
    bottom: -10px;
    left: 25%;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.navbar-brand {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-brand span {
    color: var(--secondary-color);
}

.brand-logo {
    height: 85px;
    width: auto;
    object-fit: contain;
}

/* Tally Affiliation */
.tally-affiliation {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 3px 8px;
    margin-top: 4px;
    transition: var(--transition);
}

.tally-affiliation:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.tally-logo-text {
    font-weight: 800;
    color: #ff5e00;
    font-size: 0.75rem;
    margin-right: 5px;
    letter-spacing: 0.5px;
}

.tally-text {
    font-size: 0.7rem;
    color: #555;
    font-weight: 500;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }

    .brand-logo {
        height: 65px;
    }

    .navbar-brand {
        font-size: 1.05rem;
        gap: 10px;
    }
}

/* Cards & Images */
.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.img-zoom-container {
    overflow: hidden;
}

.img-zoom-container img {
    width: 100%;
    transition: transform 0.5s ease;
    display: block;
}

.card:hover .img-zoom-container img {
    transform: scale(1.1);
}


/* Affiliation Banner */
.affiliation-banner {
    background-color: #eef2f5;
    color: var(--text-color);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    border-bottom: 1px solid #dee2e6;
}

.scrolling-text {
    display: flex;
    width: max-content;
    animation: scroll-left 25s linear infinite;
}

.scrolling-text:hover {
    animation-play-state: paused;
}

.scrolling-content {
    display: flex;
    align-items: center;
    padding-right: 40px;
    /* Gap between seamless loops */
}

.scrolling-content span {
    font-size: 0.95rem;
    font-weight: 500;
}

.scrolling-content .separator {
    margin: 0 20px;
    color: var(--secondary-color);
    font-weight: 300;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Accordion */
.accordion-btn {
    background-color: transparent;
    color: var(--primary-color);
    cursor: pointer;
    padding: 15px 0 0 0;
    width: 100%;
    border: none;
    border-top: 1px solid #eee;
    text-align: left;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.accordion-btn:hover,
.accordion-btn.active {
    color: var(--secondary-color);
}

.accordion-btn i {
    transition: transform 0.3s ease;
}

.accordion-btn.active i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    background-color: white;
    max-height: 0;
    height: auto;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.accordion-content.show {
    padding: 15px 0 5px 0;
}

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

.syllabus-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #555;
    border-bottom: 1px dashed #eee;
}

.syllabus-list li:last-child {
    border-bottom: none;
}

.syllabus-list li i {
    color: #28a745;
    margin-top: 4px;
}

/* Card hover animation enhancement */
.course-card {
    border: 2px solid transparent;
}

.course-card.active {
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}