/* Footer part CSS*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #ffffff;
    margin: 0;
    padding-top: 0 !important; /* Will be set dynamically by JS */
}

main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    flex: 1;
    position: relative;
    z-index: 1;
    background: #ffffff;
    margin-top: 140px; /* Increased to account for new spacing */
}

/* Navbar Specific Styles */
.navbar {
    background: linear-gradient(135deg, 
        #FFD700 0%,    /* Gold */
        #FFC000 50%,   /* Darker gold */
        #FFB300 100%   /* Even darker gold */
    );
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Logo and School Name */
.navbar-logo {
    width: 80px;
    height: auto;
    transition: transform 0.3s ease;
}

.school-title {
    display: flex;
    flex-direction: column;
}

.winner-text {
    color: #000000;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.bright-future-text {
    color: #ff0000;
    font-size: 1.5rem;
    font-weight: 700;
}

.animated-star {
    color: #0066ff;
    animation: starPulse 2s infinite;
}

/* Navigation Items */
.nav-list {
    gap: 10px;
    display: flex;
    flex-wrap: nowrap;
}

/* Consistent spacing between menu items */
.gallery-item {
    margin-left: 0; /* Remove additional margin for consistent spacing */
}

.nav-link {
    color: #1e3c72 !important;
    font-weight: 600;
    padding: 8px 15px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #000000 !important;
}

.login-btn {
    background: #1e3c72 !important;
    color: #ffffff !important;
    padding: 10px 25px !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.2);
}

.login-btn:hover {
    background: #152b52 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3);
}

/* Footer Background */
.footer-section {
    background: linear-gradient(135deg, 
        #FFD700 0%,    /* Gold */
        #FFC000 50%,   /* Darker gold */
        #FFB300 100%   /* Even darker gold */
    );
    padding: 0;
    margin: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-section * {
    margin-top: 0;
    margin-bottom: 0;
}

.row.g-4 {
    margin: 0;
    padding: 1rem;
}

.py-4 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Brand Section */
.footer-logo {
    width: 80px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.school-name-compact {
    display: flex;
    flex-direction: column;
    margin-left: 15px;
}

.winner-text {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1e3c72;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.bright-future-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff0000;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

/* Contact Info Styles */
.contact-info {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px;
    backdrop-filter: blur(5px);
}

.info-item {
    padding: 6px 10px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    min-width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e3c72;
    color: #ffffff;
    border-radius: 50%;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info-item a {
    color: #1e3c72;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    line-height: 1.4;
}

/* Hover Effects */
.info-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.info-item:hover i {
    background: #152b52;
    transform: scale(1.1);
}

.info-item:hover a {
    color: #000000;
}

/* Icon-specific colors */
.info-item .fa-map-marker-alt {
    background: #ff4444;
}

.info-item .fa-phone {
    background: #00C851;
}

.info-item .fa-envelope {
    background: #33b5e5;
}

/* Map Section */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    height: 200px;
}

.directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1e3c72;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Enhanced Connect With Us Section */
.footer-social {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 10px !important;
}

.connect-title {
    margin-bottom: 5px;
    font-size: 1.3rem;
    color: #1e3c72;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.connect-title i {
    color: #0066ff;
    animation: globeSpin 4s linear infinite;
}

@keyframes globeSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.connect-tagline {
    text-align: center;
    color: #1e3c72;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.2;
}

.pulse-heart {
    color: #ff4444;
    margin-right: 5px;
    animation: heartBeat 1.5s ease infinite;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

.social-icons-container {
    padding: 10px;
}

.social-icons {
    gap: 20px;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 8px;
    transition: all 0.3s ease;
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e3c72;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Social Icon Specific Styles */
.facebook .icon-wrapper {
    background: #1877f2;
}

.twitter .icon-wrapper {
    background: #1da1f2;
}

.instagram .icon-wrapper {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.linkedin .icon-wrapper {
    background: #0077b5;
}

/* Enhanced Hover Effects */
.social-icon:hover {
    transform: translateY(-5px);
}

.social-icon:hover .icon-wrapper {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.social-icon:hover .social-label {
    opacity: 1;
    transform: translateY(0);
}

/* Icon-specific hover animations */
.facebook:hover .icon-wrapper {
    background: #0d5ab9;
}

.twitter:hover .icon-wrapper {
    background: #0c85d0;
}

.instagram:hover .icon-wrapper {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.linkedin:hover .icon-wrapper {
    background: #005885;
}

/* YouTube Icon Styles */
.youtube .icon-wrapper {
    background: #FF0000;
    transition: all 0.3s ease;
}

.youtube:hover .icon-wrapper {
    background: #cc0000;
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

.youtube:hover {
    transform: translateY(-5px);
}

.youtube:hover .social-label {
    opacity: 1;
    transform: translateY(0);
    color: #FF0000;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-section {
        padding: 10px 0 0;
    }
    
    .connect-tagline {
        font-size: 0.85rem;
    }
    
    .icon-wrapper {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .social-icons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .social-icon {
        width: calc(50% - 20px);
    }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: none;
        padding: 8px;
    }
    
    .nav-list {
        padding: 20px 0;
    }
    
    .nav-link {
        padding: 12px 20px !important;
    }
}

/* Blue Star Icon */
.blue-star {
    color: #0066ff !important;
    animation: starPulse 2s infinite;
}

@keyframes starPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Stylish Footer Divider */
.footer-divider {
    padding: 10px 0 5px;
}

.divider-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.divider-line {
    height: 2px;
    width: 100px;
    background: linear-gradient(
        90deg,
        transparent,
        #1e3c72 50%,
        transparent
    );
    position: relative;
    opacity: 0.5;
}

.divider-star {
    color: #1e3c72;
    font-size: 1.2rem;
    animation: starTwinkle 2s infinite;
}

@keyframes starTwinkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.7;
    }
}

/* Enhanced Copyright Section */
.footer-bottom {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 10px 0;
}

.copyright-text {
    text-align: center;
    color: #1e3c72;
    font-weight: 500;
    font-size: 0.95rem;
}

.school-link, .developer-link {
    color: #1e3c72;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.school-link:hover, .developer-link:hover {
    color: #000000;
}

.school-link::after, .developer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #1e3c72, #0066ff);
    transition: width 0.3s ease;
}

.school-link:hover::after, .developer-link:hover::after {
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .divider-line {
        width: 60px;
    }
    
    .copyright-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .divider-line {
        width: 40px;
    }
}

/* Enhanced Sliding Message Styles */
.sliding-message-container {
    width: 100%;
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 0.97) 0%,
        rgba(42, 82, 152, 0.97) 100%
    );
    overflow: hidden;
    padding: 10px 0;
    position: fixed;
    top: 90px; /* Increased gap from navbar */
    left: 0;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.sliding-message-container.hidden {
    transform: translateY(-120%);
    opacity: 0;
}

.sliding-message {
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%
    );
    backdrop-filter: blur(8px);
    padding: 2px 0;
}

.message-content {
    display: inline-flex;
    align-items: center;
    animation: slideMessage 25s linear infinite;
    padding: 0 50px;
    position: relative;
}

.message-icon {
    color: #FFD700;
    margin: 0 15px;
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: bounce 2s infinite;
}

.message-star {
    color: #FFD700;
    margin: 0 18px;
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: spin 4s linear infinite;
}

.welcome-text, .education-text {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
}

.welcome-text {
    margin-right: 15px;
    font-weight: 600;
    color: #FFD700;
}

.education-text {
    position: relative;
    padding-left: 15px;
}

.education-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 70%;
    background: rgba(255, 215, 0, 0.3);
}

/* Adjust main content margin */
main {
    margin-top: 140px; /* Increased to account for new spacing */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sliding-message-container {
        top: 70px; /* Adjusted for mobile */
        padding: 8px 0;
    }
    
    .welcome-text, .education-text {
        font-size: 0.95rem;
    }
    
    .message-icon, .message-star {
        font-size: 1.1rem;
        margin: 0 12px;
    }
    
    main {
        margin-top: 120px;
    }
}

/* Enhanced Animations */
@keyframes slideMessage {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Full-width Container */
.slider-notice-section {
    padding: 0;
    margin: 0;
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    z-index: 10;
}

/* Enhanced Image Carousel */
.image-carousel {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.swiper-container {
    width: 100%;
    height: 500px;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 1.2s ease;
}

.swiper-slide-active img {
    transform: scale(1);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    text-align: left;
}

.swiper-slide-active .slide-caption {
    transform: translateY(0);
}

.slide-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.slide-caption p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Enhanced Navigation Controls */
.swiper-button-next,
.swiper-button-prev {
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
    color: #1e3c72;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: white;
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #ffffff;
    width: 20px;
    border-radius: 5px;
}

/* Professional Notice Board Styles */
.notice-board {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    height: 500px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.notice-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 20px;
    position: relative;
    z-index: 1;
}

.notice-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    animation: shimmer 2s infinite linear;
}

.notice-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.notice-header h3 i {
    font-size: 1.6rem;
    animation: bounce 2s infinite ease;
}

.notice-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

/* Custom Scrollbar */
.notice-content::-webkit-scrollbar {
    width: 8px;
}

.notice-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.notice-content::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #1e3c72, #2a5298);
    border-radius: 4px;
}

/* Notice Items */
.notice-item {
    background: #ffffff;
    margin-bottom: 5px;
    padding: 8px;
    border-radius: 6px;
    border-left: 1px solid #1e3c72;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.6s ease forwards;
    opacity: 0;
    transform: translateX(-30px);
    }

.notice-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notice-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.notice-item:hover::before {
    opacity: 1;
}

.notice-date {
    font-family: 'Roboto', sans-serif;
    color: #1e3c72;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-date i {
    color: #FFD700;
    font-size: 1rem;
}

.notice-text {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
}

.notice-text a {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding-right: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.notice-text a::after {
    content: '→';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.notice-text a:hover {
    color: #2a5298;
    padding-right: 40px;
}

.notice-text a:hover::after {
    opacity: 1;
    right: 0;
}

/* Notice Footer */
.notice-footer {
    padding: 20px;
    text-align: center;
    background: rgba(248, 249, 250, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.view-all-btn {
    display: inline-block;
    padding: 12px 30px;
/*    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);*/
    color: white;
    border-radius: 0px; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.2);
    position: relative;
    overflow: hidden;
}

.view-all-btn::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: 0.5s;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
}

.view-all-btn:hover::before {
    left: 100%;
}

/* Animations */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .notice-board {
        height: 450px;
    }
}

@media (max-width: 992px) {
    .notice-board {
        height: 400px;
        margin-top: 20px;
    }
    
    .notice-header h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .notice-board {
        height: 350px;
    }
    
    .notice-item {
        padding: 15px;
    }
    
    .notice-date {
        font-size: 0.9rem;
    }
    
    .notice-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .notice-board {
        height: 300px;
    }
    
    .notice-header h3 {
        font-size: 1.1rem;
    }
    
    .view-all-btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
}

/* Container width adjustments */
.container {
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}

/* Row spacing */
.row {
    margin: 0 -15px;
}

/* Column padding */
[class*="col-"] {
    padding: 0 15px;
}
