/* General Styles */
/* Adjust body padding to account for fixed navbar */
body {
    padding-top: 120px; /* Default padding when both topbar and navbar are visible */
    transition: padding-top 0.35s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

body.scrolled {
    padding-top: 76px; /* Reduced padding when topbar is hidden */
}

/* Mobile responsive padding */
@media (max-width: 991.98px) {
    body {
        padding-top: 100px;
    }
    
    body.scrolled {
        padding-top: 60px;
    }
}

/* Rest of your existing newstyle.css content remains the same */
p {
    text-align: justify;
}

/* Slider */
.slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    text-align: center;
    padding: 20px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 30px;
}

.section-title h2 {
    font-size: 32px;
    color: #003366;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #e74c3c;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: #666;
    font-size: 16px;
    margin-top: 15px;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Vision & Mission Section */
.vision-mission {
    padding: 40px 0;
}

.vm-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.vision-box, .mission-box {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    margin: 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.vision-box {
    border-top: 4px solid #3498db;
}

.mission-box {
    border-top: 4px solid #e74c3c;
}

.vm-container h3 {
    color: #003366;
    margin-bottom: 20px;
}

.vm-container p {
    color: #555;
    line-height: 1.6;
}

.vm-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: #003366;
}

/* History Section */
.history-section {
    background-color: #f9f9f9;
    padding: 40px 0;
}

.history-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.history-content h3 {
    color: #003366;
    margin-bottom: 20px;
}

.history-content p {
    line-height: 1.6;
    color: #555;
}

/* More About College Section */
.specials {
    padding: 60px 0;
    background-color: #fff;
}

.specials .section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #d4a017;
    margin-bottom: 30px;
    text-align: center;
}

.specials .nav-tabs {
    border: none;
}

.specials .nav-tabs .nav-link {
    color: #333;
    font-size: 1.1rem;
    padding: 15px 20px;
    border: none;
    transition: background-color 0.3s;
}

.specials .nav-tabs .nav-link:hover {
    background-color: #f1f1f1;
}

.specials .nav-tabs .nav-link.active {
    background-color: #d4a017;
    color: #fff;
    font-weight: bold;
}

.specials .tab-content {
    padding: 20px;
    min-height: auto;
}

.specials .tab-pane h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.specials .tab-pane p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.specials .tab-pane .fst-italic {
    font-style: italic;
}

.specials .tab-pane ul {
    padding-left: 20px;
}

.specials .tab-pane ul li {
    margin-bottom: 10px;
}

/* Notice Board Section */
.notice-board {
    padding: 20px 0;
    background-color: #f1f1f1;
    text-align: center;
}

.notice-board .section-title {
    font-size: 1.8rem;
    color: #003366;
    margin-bottom: 15px;
}

.notice-board .nb-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.notice-board .nb-text {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-right: 15px;
}

.notice-board .nb-notice {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.notice-board .nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
}

.notice-board .nav-tabs .nav-link {
    color: #333;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.notice-board .nav-tabs .nav-link.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff #007bff #fff;
}

.notice-board .tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 15px;
    background-color: #fff;
}

.notice-board iframe {
    width: 100%;
    height: 300px;
    border: none;
    overflow-y: auto;
}

/* Footer */
footer {
    background-color: #003366;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

footer h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

footer p {
    font-size: 1rem;
    margin-bottom: 10px;
}

footer .footer-links a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

footer .footer-links a:hover {
    text-decoration: underline;
}

footer .social-icons a {
    color: #fff;
    margin: 0 10px;
    font-size: 18px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-content, .vm-container, .notice-board .nb-container {
        flex-direction: column;
    }
    
    .navbar-brand img {
        margin-left: 0;
    }
    
    .notice-board .nb-text, .notice-board .nb-notice {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .slider {
        height: 300px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
}