:root {
    --primary-purple: #6a0dad;
    --secondary-purple: #9229f5;
    --light-purple: #e6e6fa;
    --accent: #ffd700;
    --dark-gray: #2d3e50;
    --light-gray: #f8f9fa;
    --gold: #ffd700;
    --logout-color: #dc3545;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #ffffff;
    padding-top: 0;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: pan-y;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Header Background with Building Image */
.university-header {
    background: 
        linear-gradient(135deg, rgba(75, 0, 130, 0.85) 0%, rgba(106, 13, 173, 0.85) 100%),
        url('../images/Building.jpg') center/cover no-repeat;
    color: white;
    padding: 1rem 0;
    border-bottom: 5px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.university-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.university-logo,
.college-logo {
    height: 70px;
    width: 70px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
    background-color: white; /* WHITE BACKGROUND RESTORED */
    border-radius: 50%; /* BORDER RADIUS RESTORED */
    object-fit: contain;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3); /* BOX SHADOW RESTORED */
    position: relative;
    z-index: 2;
}

.university-logo {
    margin-right: 0;
}

.college-logo {
    margin-left: -5px;
}

.college-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    line-height: 1.2;
    word-wrap: break-word;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

.college-subtitle {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
    margin: 0;
    text-align: left;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

/* Enhanced Auth Icon Styles - FIXED: Person icon instead of arrow */
.header-auth-icon {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    position: relative;
    z-index: 2;
}

.auth-icon-link {
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    border: none;
    outline: none;
}

.auth-icon-link:hover {
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* FIXED: Logout icon should be person icon, not arrow */
#logout-icon-link {
    color: white !important;
    background-color: rgba(106, 13, 173, 0.2) !important;
}

#logout-icon-link:hover {
    background-color: rgba(106, 13, 173, 0.3) !important;
    color: var(--accent) !important;
}

/* Enhanced Mobile Header Styles */
@media (max-width: 768px) {
    .university-header .row {
        flex-direction: row;
        text-align: center;
        align-items: center;
    }
    
    .university-header .col-md-9 {
        order: 0;
        margin-top: 0;
        width: 100%;
        text-align: center;
    }
    
    .university-header .col-md-1.text-center {
        display: flex;
        justify-content: center;
        margin-bottom: 0;
    }
    
    .university-header .col-md-1:last-child {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .college-title {
        font-size: 1.1rem;
        text-align: center;
        margin-top: 0;
        line-height: 1.3;
    }
    
    .college-subtitle {
        text-align: center;
        font-size: 0.8rem;
        margin-top: 0.3rem;
    }
}

@media (max-width: 576px) {
    .college-title {
        font-size: 0.95rem;
    }
    
    .college-subtitle {
        font-size: 0.7rem;
    }
    
    .university-header .col-md-1:last-child {
        top: 0.8rem;
        right: 0.8rem;
    }
}

/* Navigation Bar Styles */
.navbar-main {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    border-top: 1px solid var(--light-purple);
    margin-bottom: 1rem;
}

.navbar-main .navbar-collapse {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-main .navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.navbar-main .nav-link {
    font-weight: 500;
    color: var(--dark-gray);
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 1rem;
    margin: 0 0.3rem;
    white-space: nowrap;
    text-decoration: none;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--primary-purple);
    background-color: var(--light-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.2);
}

/* Enhanced Dropdown Hover Styles */
@media (min-width: 992px) {
    .navbar-main .dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .navbar-main .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    .navbar-main .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Enhanced Mobile Navigation Styles */
.navbar-toggler {
    border: 2px solid var(--primary-purple);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1020;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(106, 13, 173, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28106, 13, 173, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

.navbar-main.mobile-open {
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile Navigation Menu */
@media (max-width: 991px) {
    .navbar-main .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
    }
    
    .navbar-main .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .navbar-main .nav-item {
        width: 100%;
    }
    
    .navbar-main .nav-link {
        padding: 0.8rem 1rem;
        margin: 0.1rem 0;
        text-align: left;
        font-size: 0.95rem;
        border-radius: 8px;
        width: 100%;
        display: block;
    }
    
    .navbar-main .dropdown-menu {
        box-shadow: none;
        border: none;
        padding-left: 1.5rem;
        background-color: rgba(230, 230, 250, 0.2);
        min-width: auto;
        width: calc(100% - 2rem);
        margin: 0.5rem 1rem;
    }
    
    .navbar-main .dropdown-item {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    .header-auth-icon {
        justify-content: flex-end;
        margin-top: 0;
    }
    
    .auth-icon-link {
        font-size: 1.6rem;
        width: 40px;
        height: 40px;
    }
    
    .navbar-main .navbar-nav {
        gap: 0.3rem;
    }
}

/* Dropdown Styles */
.navbar-main .dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.8rem;
    min-width: 220px;
    border: 2px solid var(--light-purple);
    margin-top: 0.5rem;
}

.navbar-main .dropdown-item {
    padding: 0.7rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0.1rem 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-main .dropdown-item i {
    width: 20px;
    margin-right: 0.5rem;
    color: var(--primary-purple);
}

.navbar-main .dropdown-item:hover {
    background-color: var(--light-purple);
    color: var(--primary-purple);
    transform: translateX(5px);
}

.navbar-main .dropdown-item:active {
    background-color: var(--primary-purple);
    color: white;
}

.navbar-main .dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar-main .show > .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Highlights Section */
.highlights-section {
    padding: 2rem 0;
    background: var(--light-purple);
    position: relative;
}

.highlights-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.highlight-slide {
    display: none;
    animation: fadeIn 1s ease-in;
}

.highlight-slide.active {
    display: block;
}

.highlight-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #f8f9fa;
}

.highlight-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.8s ease;
}

.highlight-image.portrait img {
    width: 100%;
    height: auto;
    max-height: none;
}

.highlight-slide.active .highlight-image img {
    transform: translate(-50%, -50%) scale(1.02);
}

/* Navigation Dots and Arrows */
.highlight-dots {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 8px;
    flex-wrap: wrap;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: var(--primary-purple);
    transform: scale(1.3);
    border-color: var(--accent);
}

.dot:hover {
    background: var(--secondary-purple);
    transform: scale(1.2);
}

.highlight-prev,
.highlight-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(106, 13, 173, 0.7);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.7;
    font-size: 1.3rem;
}

.highlight-prev {
    left: 25px;
}

.highlight-next {
    right: 25px;
}

.highlight-prev:hover,
.highlight-next:hover {
    background: var(--primary-purple);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideTransition {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.highlight-slide.active {
    animation: slideTransition 0.8s ease-out;
}

/* Progress Bar for Auto-rotation */
.highlights-carousel::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 5;
}

.highlights-carousel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--accent);
    z-index: 6;
    transition: width 4s linear;
}

.highlights-carousel.auto-rotating::after {
    width: 100%;
}

/* Welcome Section */
.welcome-section {
    padding: 3rem 0;
    background: white;
}

.welcome-title {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.welcome-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    white-space: pre-wrap;
}

/* Academic Programs Section */
.programs-section {
    padding: 3rem 0;
    background: white;
}

.programs-title {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
}

.programs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.programs-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    transition: all 0.3s ease;
}

.program-card {
    background: var(--light-purple);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--accent);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    display: flex;
    flex-direction: column;
}

.program-card.detailed {
    background: var(--light-purple);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--accent);
    transition: box-shadow 0.3s ease, border-left-color 0.3s ease, transform 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.program-card:hover::before {
    left: 100%;
}

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

.program-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.program-header i {
    font-size: 2.5rem;
    color: var(--primary-purple);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.program-header h5 {
    color: var(--primary-purple);
    font-weight: 600;
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.program-header h4 {
    color: var(--primary-purple);
    font-weight: 600;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.program-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-details > p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.program-card > p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Career List Styles - FIXED: Removed bullet points */
.career-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.program-features {
    margin-top: 1.5rem;
}

.program-features h5,
.program-features h6 {
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.program-duration {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin: 0.5rem 0 1rem 0;
}

.career-list li {
    padding: 0.3rem 0;
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(106, 13, 173, 0.1);
    transition: all 0.3s ease;
    padding-left: 0 !important; /* Remove any left padding */
}

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

.career-list li:hover {
    color: var(--primary-purple);
    padding-left: 5px !important;
}

/* Footer Background with Building Image */
.main-footer {
    background: 
        linear-gradient(135deg, rgba(75, 0, 130, 0.85) 0%, rgba(106, 13, 173, 0.85) 100%),
        url('../images/Building.jpg') center/cover no-repeat;
    color: white;
    padding: 1rem 0 0.5rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.footer-section {
    padding: 0.8rem;
    position: relative;
    z-index: 2;
}

/* FIXED FOOTER ALIGNMENT - COMPLETE SOLUTION */
.footer-content-wrapper-left {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.footer-logo-text-tapad {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    text-align: left;
    width: 100%;
    max-width: 100%;
}

.footer-logo {
    height: 50px;
    width: 50px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    flex-shrink: 0;
    background-color: white; /* WHITE BACKGROUND RESTORED */
    border-radius: 50%; /* BORDER RADIUS RESTORED */
    object-fit: contain;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.3); /* BOX SHADOW RESTORED */
}

.footer-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* FIXED: University name - proper alignment */
.footer-university-name {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.3;
    text-align: left;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    white-space: normal;
    word-wrap: break-word;
    word-break: normal;
    overflow-wrap: break-word;
    display: block;
    width: 100%;
    max-width: 100%;
    font-family: 'Inter', sans-serif;
}

/* FIXED: Core values - proper alignment */
.core-values-footer {
    font-size: 0.75rem;
    font-weight: 400;
    text-align: left;
    line-height: 1.4;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: wrap;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.value-item {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin: 0;
    display: inline-block;
    white-space: nowrap;
    font-size: 0.65rem;
    line-height: 1.2;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.value-separator {
    margin: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 0.65rem;
    display: inline-block;
}

/* UPDATED FOOTER STYLES - Contact on left, Follow Us moved slightly to the left */
.footer-contact-social-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between; /* This will push items to opposite ends */
    align-items: flex-start;
    width: 100%;
    padding-left: 0;
}

.contact-info-left {
    text-align: left;
    flex: 0 1 auto;
}

.social-info-left {
    text-align: right; /* Align to the right */
    flex: 0 1 auto;
    margin-left: 0; /* Remove auto margin to bring it closer */
    margin-right: 2rem; /* Add some space from the right edge */
}

.contact-info-left {
    min-width: 200px;
}

.social-info-left {
    min-width: 150px;
}

.contact-info-left .contact-title {
    text-align: left;
    justify-content: flex-start;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    position: relative;
    display: inline-block;
}

.social-info-left .social-title {
    text-align: right; /* Align title to right */
    justify-content: flex-end;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    position: relative;
    display: inline-block;
}

.contact-info-left .contact-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.social-info-left .social-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0; /* Align to right instead of left */
    width: 35px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.contact-info-left .contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.6rem;
    gap: 6px;
    transition: transform 0.3s ease;
    padding: 0.2rem;
    border-radius: 6px;
}

.contact-info-left .contact-item:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.05);
}

.contact-info-left .contact-item i {
    color: var(--accent);
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.contact-info-left .contact-item span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.social-info-left .social-links {
    margin-top: 0.8rem;
    display: flex;
    justify-content: flex-end; /* Align social links to right */
    gap: 0.6rem;
}

.social-link {
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-link:hover {
    color: white;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #1877f2;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    text-align: center;
}

.main-footer hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 1rem 0 0.8rem;
    opacity: 0.5;
}

.quick-links {
    display: none;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top-btn:hover {
    background: var(--accent);
    color: var(--primary-purple);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.image-optimized {
    object-position: center 30%;
}

/* User Info Styles */
.user-info-text {
    font-weight: 600;
    color: var(--primary-purple) !important;
}

.user-info-text i {
    color: var(--accent);
}

#user-info-item,
#login-icon-link,
#logout-icon-link {
    transition: all 0.3s ease;
}

/* Blocked Navigation Items */
.blocked-nav-item {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    position: relative;
}

.blocked-nav-item:hover {
    opacity: 0.4 !important;
    transform: none !important;
}

.navbar-main .nav-link.blocked-nav-item:hover,
.navbar-main .dropdown-item.blocked-nav-item:hover {
    background-color: transparent !important;
    color: var(--dark-gray) !important;
    transform: none !important;
}

/* Floating Return to Dashboard Button */
.floating-return-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0;
    transform: translateX(-100%);
}

.floating-return-btn.show {
    opacity: 1;
    transform: translateX(0);
}

.floating-return-btn:hover {
    transform: translateY(-3px) translateX(0);
    box-shadow: 0 6px 20px rgba(106, 13, 173, 0.4);
    color: white;
    text-decoration: none;
}

/* Animation for section appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ENHANCED NOTIFICATION STYLES */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 350px;
    padding: 12px 15px;
    font-size: 0.9rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInTop 0.3s ease-out;
    border-left: 4px solid;
}

.notification.alert-info {
    border-left-color: #0dcaf0;
    background: #d1ecf1;
    color: #055160;
}

.notification.alert-warning {
    border-left-color: #ffc107;
    background: #fff3cd;
    color: #664d03;
}

.notification.alert-danger, .notification.alert-error {
    border-left-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.notification.alert-success {
    border-left-color: #198754;
    background: #d1e7dd;
    color: #0f5132;
}

.notification .btn-close {
    padding: 0.75rem;
    font-size: 0.7rem;
}

/* Animation gikan sa taas */
@keyframes slideInTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsiveness for footer */
@media (max-width: 768px) {
    .footer-contact-social-wrapper {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 1.5rem;
    }
    
    .social-info-left {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .social-info-left .social-title {
        text-align: left;
        justify-content: flex-start;
    }
    
    .social-info-left .social-title::after {
        left: 0;
        right: auto;
        transform: none;
    }
    
    .social-info-left .social-links {
        justify-content: flex-start;
    }
    
    .contact-info-left,
    .social-info-left {
        text-align: left;
        align-items: flex-start;
        width: 100%;
    }
    
    .contact-info-left .contact-title,
    .social-info-left .social-title {
        text-align: left;
        justify-content: flex-start;
    }
    
    .contact-info-left .contact-title::after,
    .social-info-left .social-title::after {
        left: 0;
        transform: none;
    }
    
    .contact-info-left .contact-item {
        justify-content: flex-start;
    }
    
    .social-info-left .social-links {
        justify-content: flex-start;
    }
    
    .footer-logo-text-tapad {
        justify-content: flex-start;
        text-align: left;
        flex-direction: row;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .footer-text-group {
        align-items: flex-start;
        text-align: left;
    }
    
    .footer-university-name {
        text-align: left;
        font-size: 0.8rem;
    }
    
    .core-values-footer {
        justify-content: flex-start;
        text-align: left;
        font-size: 0.7rem;
    }
    
    /* Further reduce padding on mobile */
    .main-footer {
        padding: 0.8rem 0 0.4rem;
    }
    
    .contact-info-left,
    .social-info-left {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .footer-university-name {
        font-size: 0.75rem;
    }
    
    .core-values-footer {
        font-size: 0.65rem;
    }
    
    .footer-contact-social-wrapper {
        gap: 1rem;
    }
    
    .contact-info-left .contact-item {
        font-size: 0.7rem;
    }
    
    /* Even smaller padding on very small screens */
    .main-footer {
        padding: 0.6rem 0 0.3rem;
    }
}

/* Additional responsive breakpoints... */
@media (max-width: 1200px) {
    .highlight-image {
        padding-bottom: 50%;
    }
    
    .programs-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
    
    .college-title {
        font-size: 1.6rem;
    }
    
    .navbar-main .nav-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .footer-university-name {
        font-size: 0.8rem;
    }
    
    .university-logo,
    .college-logo {
        height: 60px;
        width: 60px;
    }
}

@media (max-width: 992px) {
    .highlight-image {
        padding-bottom: 45%;
    }
    
    .highlight-prev,
    .highlight-next {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .navbar-main .nav-link {
        padding: 0.6rem 1rem;
        margin: 0.1rem 0;
        font-size: 0.9rem;
    }
    
    .college-title {
        font-size: 1.4rem;
    }
    
    .college-subtitle {
        font-size: 0.9rem;
    }
    
    .footer-section {
        margin-bottom: 1.2rem;
    }
    
    .university-logo,
    .college-logo {
        height: 55px;
        width: 55px;
    }
}

@media (max-width: 768px) {
    .university-logo,
    .college-logo {
        height: 50px;
        width: 50px;
    }
    
    .college-title {
        font-size: 1.1rem;
        text-align: center;
        margin-top: 0.8rem;
    }
    
    .college-subtitle {
        text-align: center;
        font-size: 0.8rem;
    }
    
    .highlights-section {
        padding: 1.5rem 0;
    }
    
    .highlight-image {
        padding-bottom: 60%;
    }
    
    .highlight-prev,
    .highlight-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .highlight-prev {
        left: 10px;
    }
    
    .highlight-next {
        right: 10px;
    }
    
    .highlight-dots {
        gap: 5px;
        margin-top: 1rem;
    }
    
    .dot {
        width: 7px;
        height: 7px;
    }
    
    .welcome-title,
    .programs-title {
        font-size: 1.5rem;
    }
    
    .navbar-main {
        padding: 0.6rem 0;
    }
    
    .programs-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .program-card {
        padding: 1.2rem;
    }
    
    .program-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .program-header i {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .program-header h5 {
        font-size: 1.1rem;
    }
    
    .user-info-text {
        font-size: 0.8rem;
    }
    
    #user-info-item .nav-link {
        padding: 0.4rem 0.6rem;
    }
    
    .main-footer {
        padding: 1.2rem 0 0.6rem;
    }
    
    .footer-logo {
        height: 40px;
        width: 40px;
    }
    
    .footer-university-name {
        font-size: 0.75rem;
        max-width: 200px;
    }
    
    .core-values-footer {
        font-size: 0.65rem;
        margin-top: 0.4rem;
    }
    
    .value-item {
        font-size: 0.6rem;
    }

    .value-separator {
        font-size: 0.6rem;
    }

    .contact-title, .social-title {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
    
    .contact-item {
        font-size: 0.75rem;
    }
    
    .copyright {
        font-size: 0.65rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    /* Mobile notification adjustment */
    .notification {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .university-logo,
    .college-logo {
        height: 40px;
        width: 40px;
    }
    
    .college-title {
        font-size: 0.9rem;
    }
    
    .college-subtitle {
        font-size: 0.7rem;
    }
    
    .highlight-image {
        padding-bottom: 70%;
    }
    
    .highlight-prev,
    .highlight-next {
        width: 35px;
        height: 35px;
        opacity: 0.8;
    }
    
    .highlight-dots {
        gap: 3px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    .navbar-main .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        margin: 0.05rem 0;
    }
    
    .navbar-main .dropdown-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .welcome-title,
    .programs-title {
        font-size: 1.3rem;
    }
    
    .programs-container {
        grid-template-columns: 1fr;
    }
    
    .program-card {
        padding: 1rem;
        margin: 0 0.3rem;
    }
    
    .career-list li {
        font-size: 0.85rem;
    }
    
    .main-footer {
        padding: 1rem 0 0.5rem;
    }
    
    .footer-logo {
        height: 35px;
        width: 35px;
    }
    
    .footer-university-name {
        font-size: 0.7rem;
        max-width: 150px;
    }
    
    .core-values-footer {
        font-size: 0.6rem;
        margin-top: 0.5rem;
    }
    
    .value-item {
        font-size: 0.55rem;
    }
    
    .value-separator {
        font-size: 0.55rem;
    }
    
    .contact-title, .social-title {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-item {
        font-size: 0.7rem;
        flex-direction: column;
        gap: 2px;
    }
    
    .copyright {
        font-size: 0.6rem;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .college-title {
        font-size: 0.8rem;
    }
    
    .college-subtitle {
        font-size: 0.65rem;
    }
    
    .footer-logo {
        height: 30px;
        width: 30px;
    }
    
    .footer-university-name {
        font-size: 0.65rem;
        max-width: 120px;
    }
    
    .core-values-footer {
        font-size: 0.55rem;
        margin-top: 0.6rem;
    }
    
    .value-item {
        font-size: 0.5rem;
    }

    .value-separator {
        font-size: 0.5rem;
    }
}

/* Touch-friendly for mobile */
@media (hover: none) and (pointer: coarse) {
    .highlight-prev,
    .highlight-next {
        opacity: 0.9;
    }
    
    .navbar-main .dropdown-item:hover {
        transform: none;
    }
    
    .header-auth-link {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

/* Prevent Landscape Rotation Issues */
@media screen and (orientation: landscape) and (max-width: 768px) {
    .container {
        max-width: 100% !important;
    }
    
    .highlight-image {
        padding-bottom: 40% !important;
    }
    
    .navbar-main .nav-link {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
}

/* ================ CHATBOT.CSS ================ */

/* Chatbot Toggle Button */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(106, 13, 173, 0.4);
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 25px rgba(106, 13, 173, 0.6);
}

/* Chatbot Container */
.ccis-chatbot {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid var(--light-purple);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ccis-chatbot.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Chatbot Header */
.chatbot-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.chatbot-title i {
    font-size: 1.3rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Chatbot Messages Container */
.chatbot-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Message Styles */
.chatbot-message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-message {
    background: var(--primary-purple);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.bot-message {
    background: white;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-content {
    margin-bottom: 0.5rem;
}

/* Quick Questions */
.quick-questions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quick-question {
    background: var(--light-purple);
    color: var(--primary-purple);
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-question:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateX(5px);
}

/* Chatbot Input Area */
.chatbot-input {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chatbot-input input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid var(--light-purple);
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.1);
}

.chatbot-input button {
    background: var(--primary-purple);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-input button:hover {
    background: var(--secondary-purple);
    transform: scale(1.1);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 0.3rem;
    padding: 0.8rem 1rem;
    background: white;
    border-radius: 18px;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-purple);
    border-radius: 50%;
    opacity: 0.4;
    animation: typing 1.5s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* Scrollbar Styling */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--light-purple);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-purple);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ccis-chatbot {
        width: calc(100% - 60px);
        height: 70vh;
        bottom: 90px;
        right: 15px;
        left: 15px;
        margin: 0 auto;
    }
    
    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .ccis-chatbot {
        width: calc(100% - 30px);
        right: 15px;
        left: 15px;
    }
    
    .chatbot-toggle {
        bottom: 15px;
        right: 15px;
    }
}
