/* Global Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #17a2b8;
    --accent-color: #ff6b6b;
    --background-color: #f8f9fa;
    --text-color: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    margin-top: 76px;
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    max-height: 40px;
}

/* Hero Section */
.hero-section {
    background-color: var(--background-color);
    padding: 60px 0;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.hero-section h1 {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    color: var(--text-color);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-bar {
    max-width: 600px;
    margin: 2rem 0;
}

.search-bar .input-group {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 30px;
    overflow: hidden;
}

.search-bar input {
    padding: 15px;
    border-radius: 25px;
    border: 2px solid var(--primary-color);
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
}

.search-bar .btn {
    padding-left: 25px;
    padding-right: 25px;
}

/* Hero Animations */
.hero-title {
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.animate-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.5s ease forwards;
}

.animate-text:nth-child(1) { animation-delay: 0.1s; }
.animate-text:nth-child(2) { animation-delay: 0.2s; }
.animate-text:nth-child(3) { animation-delay: 0.3s; }
.animate-text:nth-child(4) { animation-delay: 0.4s; }
.animate-text:nth-child(5) { animation-delay: 0.5s; }

.animate-text.highlight {
    color: var(--primary-color);
    position: relative;
}

.animate-text.highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    animation: underline 0.5s ease forwards 0.8s;
}

.hero-description {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.7s;
}

/* Text Animation Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes underline {
    to {
        transform: scaleX(1);
    }
}

/* Add hover effects */
.hero-title:hover .animate-text {
    animation: rubberBand 1s ease;
}

@keyframes rubberBand {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scaleX(1.25) scaleY(0.75);
    }
    40% {
        transform: scaleX(0.75) scaleY(1.25);
    }
    50% {
        transform: scaleX(1.15) scaleY(0.85);
    }
    65% {
        transform: scaleX(0.95) scaleY(1.05);
    }
    75% {
        transform: scaleX(1.05) scaleY(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* Add text gradient effect */
.hero-title .highlight {
    background: linear-gradient(120deg, var(--primary-color), #4a90e2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: textGradient 2s linear infinite;
}

@keyframes textGradient {
    to {
        background-position: 200% center;
    }
}

/* Add floating animation to description */
.hero-description {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Rotating Messages Animation */
.hero-description-wrapper {
    height: 80px; /* Adjust based on text height */
    overflow: hidden;
    position: relative;
}

.message-rotate {
    display: inline-block;
    position: relative;
    width: 100%;
}

.message {
    display: block;
    opacity: 0;
    position: absolute;
    width: 100%;
    animation: rotateMessages 15s linear infinite;
    transform: translateY(50px);
    transition: all 0.5s ease;
}

.message:nth-child(1) {
    animation-delay: 0s;
}

.message:nth-child(2) {
    animation-delay: 5s;
}

.message:nth-child(3) {
    animation-delay: 10s;
}

@keyframes rotateMessages {
    0%, 5% {
        opacity: 0;
        transform: translateY(50px);
    }
    10%, 30% {
        opacity: 1;
        transform: translateY(0);
    }
    35%, 40% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px);
    }
}

/* Add fade effect at wrapper edges */
.hero-description-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, var(--bs-body-bg) 0%, transparent 100%);
    pointer-events: none;
}

/* Pause animation on hover */
.hero-description-wrapper:hover .message {
    animation-play-state: paused;
}

/* Add subtle scale effect on hover */
.hero-description-wrapper:hover .message {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: white;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Statistics */
.statistics {
    background-color: var(--primary-color);
    padding: 60px 0;
    color: white;
}

.stat-item {
    margin-right: 2rem;
}

.stat-item:last-child {
    margin-right: 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Buttons */
.cta-buttons .btn {
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* News Ticker Styles */
.ticker-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-heading {
    white-space: nowrap;
    font-weight: 500;
}

.ticker-container {
    overflow: hidden;
    flex: 1;
}

.ticker-content {
    display: inline-flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding: 0 2rem;
    color: #333;
}

.ticker-item a {
    color: #333;
    transition: color 0.3s ease;
}

.ticker-item a:hover {
    color: #0d6efd;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover */
.ticker-container:hover .ticker-content {
    animation-play-state: paused;
}

/* University Updates Ticker */
.university-updates .ticker-item {
    color: white;
    font-weight: 500;
}

.university-updates .ticker-item span {
    margin-right: 2rem;
    position: relative;
}

.university-updates .ticker-item span::after {
    content: '•';
    position: absolute;
    right: -1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.university-updates {
    animation: ticker 40s linear infinite; /* Slower speed for better readability */
}

.bg-primary .ticker-heading {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Adjust existing ticker styles for better compatibility */
.news-ticker {
    position: relative;
    z-index: 1000;
}

.news-ticker .ticker-wrapper {
    min-height: 40px;
}

/* Footer Styles */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.footer-links a {
    color: #a8a8a8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.social-links a {
    color: #ffffff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #0d6efd;
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.feature-highlight {
    padding: 1rem;
    transition: transform 0.3s ease;
}

.feature-highlight:hover {
    transform: translateY(-5px);
}

.feature-highlight .counter {
    font-size: 2rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.footer .list-inline-item a {
    color: #a8a8a8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer .list-inline-item a:hover {
    color: #ffffff;
}

.contact-info i {
    color: #0d6efd;
}

/* Footer */
footer {
    background-color: #343a40;
    color: white;
    padding: 60px 0 30px;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }

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

    .card-img-top {
        height: 160px;
    }
}
/* ...existing code... */
.hero-float {
    animation: heroFloat 3s ease-in-out infinite;
}

@keyframes heroFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
    100% { transform: translateY(0); }
}
/* ...existing code... */

/* Animation Classes */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-in;
}

.fade-in.visible {
    opacity: 1;
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-toggle {
    background: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.chat-toggle:hover {
    transform: translateY(-3px);
}

.chat-toggle i {
    font-size: 1.5rem;
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: none;
    overflow: hidden;
}

.chat-box.active {
    display: block;
    animation: slideUp 0.3s ease;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.chat-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.chat-options {
    display: grid;
    gap: 15px;
}

.chat-option {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.chat-option:hover {
    transform: translateY(-3px);
    background: #f0f0f0;
}

.chat-option i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.chat-option.whatsapp i {
    color: #25D366;
}

.chat-option.video-call i {
    color: #0d6efd;
}

.chat-option.live-chat i {
    color: #17a2b8;
}

.live-chat-interface {
    height: 300px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
}

.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
}

.message.system {
    background: #f8f9fa;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.message.user {
    background: #e3f2fd;
    margin-left: auto;
}

.message.support {
    background: #f0f0f0;
    margin-right: auto;
}

.chat-input {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #dee2e6;
}

.chat-input input {
    flex-grow: 1;
    padding: 8px 15px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    outline: none;
}

.send-message {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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

/* Schedule Modal Styles */
.modal-content {
    border-radius: 15px;
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.modal-body {
    padding: 20px;
}

/* Registration Page Styles */
.call-banner {
    background: linear-gradient(45deg, var(--primary-color), #4a90e2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.call-banner h4 {
    font-size: 1.5rem;
}

.blink {
    animation: blink-animation 1.5s infinite;
}

@keyframes blink-animation {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.card-header {
    background: linear-gradient(45deg, var(--primary-color), #4a90e2) !important;
}

/* Form Styles */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #4a90e2);
    border: none;
    padding: 10px 30px;
    transition: transform 0.3s ease;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    .call-banner h4 {
        font-size: 1.2rem;
    }
}
