/* New Design Styles for index.php */
:root {
    --primary-blue: #08264b;
    --secondary-blue: #0d3b6f;
    --accent-yellow: #ffcc00;
    --text-dark: #08264b;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Top Bar */
.top-bar {
    background: var(--primary-blue);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}
.top-bar a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    transition: var(--transition-smooth);
}
.top-bar a:hover {
    color: var(--accent-yellow);
}

/* Navbar */
.navbar {
    background: white !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 10px 0;
    transition: var(--transition-smooth);
}
.navbar.scrolled {
    padding: 8px 0;
}
.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    padding: 8px 10px !important;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--transition-smooth);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-blue) !important;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}
.section-title h2 {
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 2.5rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-yellow);
    margin: 0 auto;
}

/* About Us Section */
.about-section {
    padding: 100px 0;
}
.about-img img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 80px 0;
}
.stat-box {
    text-align: center;
}
.stat-count {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
}
.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Courses Section */
.courses-section {
    padding: 100px 0;
    background: white;
}
.course-category-card {
    background: #f8fafc;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid #e2e8f0;
    height: 100%;
}
.course-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}
.course-category-card h4 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 20px;
}
.btn-category {
    background: var(--primary-blue);
    color: white;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    margin-top: 15px;
}

/* Link Cards */
.link-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    border-bottom: 4px solid var(--accent-yellow);
    display: block;
    text-decoration: none;
    color: var(--text-dark);
}
.link-card:hover {
    transform: translateY(-5px);
    background: var(--primary-blue);
    color: white;
}
.link-card i {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: #08264b;
    color: white;
    padding: 80px 0 30px;
}
.footer h5 {
    color: var(--accent-yellow);
    font-weight: 700;
    margin-bottom: 25px;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.footer-links a:hover {
    color: white;
    padding-left: 5px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
    color: #94a3b8;
}

/* Message Section */
.messages-section {
    padding: 80px 0;
}
.message-card {
    transition: var(--transition-smooth);
}
.message-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* News Section */
.news-section {
    padding: 80px 0;
}
.news-card {
    transition: var(--transition-smooth);
    border: 1px solid #e2e8f0 !important;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border-color: var(--primary-blue) !important;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 250px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 71, 161, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* Student Wall & Marquee */
.student-wall {
    padding: 80px 0;
    overflow: hidden;
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

.marquee-content {
    display: inline-flex;
    animation: marquee-scroll 30s linear infinite;
    gap: 20px;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.student-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    border: 1px solid #e2e8f0;
    width: 200px; /* Fixed width for marquee items */
    flex-shrink: 0;
}

.student-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.student-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--bg-light);
}

.student-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-blue);
}

.student-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* News Marquee */
.news-ticker {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    z-index: 100;
}

.ticker-container {
    display: flex;
    align-items: center;
}

.ticker-label {
    background: var(--primary-blue);
    color: white;
    padding: 5px 15px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 2;
    border-radius: 4px;
    margin-right: 20px;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-scroll {
    display: inline-block;
    animation: news-scroll 30s linear infinite;
    padding-left: 100%;
}

.ticker-scroll:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    margin-right: 50px;
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
}

.ticker-item:hover {
    color: var(--primary-blue);
}

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

/* Gallery Marquee */
.gallery-marquee {
    padding: 80px 0;
    overflow: hidden;
    background: #fff;
}

.gallery-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

.gallery-scroll {
    display: inline-flex;
    animation: gallery-scroll 40s linear infinite;
    gap: 20px;
}

.gallery-scroll:hover {
    animation-play-state: paused;
}

@keyframes gallery-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.gallery-card {
    width: 300px;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0;
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 38, 75, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

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

.gallery-card-overlay span {
    color: white;
    font-size: 2rem;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-card-overlay span {
    transform: translateY(0);
}


/* Hero Section Redesign */
#home {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-bg h1 {
    font-size: 3.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: white !important;
}

.hero-bg .lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
    color: white !important;
}

/* Override previous hero button styles */
.hero-bg .btn-warning {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--primary-blue);
}

.hero-bg .btn-warning:hover {
    background-color: #e6b800;
    border-color: #e6b800;
}

.hero-bg .btn-outline-light {
    border-color: white;
    color: white;
}

.hero-bg .btn-outline-light:hover {
    background-color: white;
    color: var(--primary-blue);
}

/* Announcement Marquee in Hero */
.hero-announcement {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    max-width: 90%;
}

.hero-announcement span {
    background: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 3px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    margin-right: 15px;
    white-space: nowrap;
}

.hero-announcement marquee {
    color: white;
    font-weight: 500;
    font-size: 14px;
}

/* Student Scrolls Section */
.student-scrolls {
    padding: 60px 0;
}

.scroll-container {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.scroll-header {
    background: #103061;
    color: #fff;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.scroll-content {
    flex: 1;
    padding: 10px;
    overflow: hidden;
}

.scroll-content marquee {
    height: 100%;
}

.student-item {
    padding: 15px 0;
    border-bottom: 1px dotted #ff0000;
    text-align: center;
}

.student-item:last-child {
    border-bottom: none;
}

.student-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #eee;
}

.student-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-name {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.student-id {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
}

.student-institute {
    color: #888;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

/* About Container Specific Styles */
.about-container {
    height: 450px;
}

.about-container .scroll-content {
    position: relative;
    overflow-y: auto;
}

.about-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    text-transform: uppercase;
}

.about-scroll-text {
    position: relative;
    z-index: 2;
    line-height: 1.8;
    color: #444;
    font-size: 0.95rem;
    text-align: justify;
}

/* Custom Scrollbar for About Text */
.about-container .scroll-content::-webkit-scrollbar {
    width: 6px;
}

.about-container .scroll-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.about-container .scroll-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.about-container .scroll-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Popular Courses Section Styles */
.popular-courses {
    padding: 80px 0;
}

.course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

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

.course-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    flex: 1;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.btn-enroll {
    background: #002147;
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    border: none;
}

.btn-enroll:hover {
    background: #003366;
    color: #fff;
    transform: scale(1.02);
}

.course-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

