/* Global Styles */
:root {
    --primary-color: #0a420a; /* Deep forest green */
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #3a8a3a; /* Lighter green shade */
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --body-bg: #f9f9f9;
    --card-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --section-padding: 80px 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: var(--body-bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: #052705;
}

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.section-title h2 {
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    color: #6c757d;
}

.btn {
    padding: 12px 28px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover {
    background-color: #052705;
    border-color: #052705;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover:before {
    left: 0;
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    width: 50px;
    height: 50px;
    line-height: 48px;
    text-align: center;
    border-radius: 50%;
    z-index: 99;
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #052705;
    color: white;
    text-decoration: none;
}

.back-to-top i {
    font-size: 20px;
    line-height: 46px;
}

.back-to-top.show {
    display: block;
    animation: fadeInUp 0.3s;
}

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

/* Header Styles */
.site-header {
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.top-bar {
    font-size: 14px;
    padding: 8px 0;
    background: rgba(10, 66, 10, 0.9); /* Darker shade of primary color */
}

.social-icons a {
    color: #fff;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.4s forwards;
    z-index: 1000;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.navbar .nav-item {
    margin: 0 8px;
    position: relative;
}

.navbar .nav-link {
    font-weight: 600;
    padding: 15px 15px;
    color: #333;
    position: relative;
}

.navbar .nav-link:before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
    opacity: 0;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--primary-color);
}

.navbar .nav-link.active:before,
.navbar .nav-link:hover:before {
    width: 60%;
    opacity: 1;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    padding: 12px 0;
    border-radius: var(--border-radius);
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

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

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 180px 0;
    color: #fff;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 35px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Program Items */
.program-item .card {
    overflow: hidden;
    transition: var(--transition);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

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

.program-features {
    margin: 15px 0;
}

.program-features li {
    margin-bottom: 8px;
}

/* About Section */
.about-img img {
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    margin-bottom: 20px;
    font-weight: 600;
}

.about-content p {
    margin-bottom: 20px;
}

.features {
    margin-top: 20px;
}

.feature-item {
    margin-bottom: 10px;
}

.feature-item i {
    margin-right: 10px;
}

/* Stats Section */
.stats-section {
    position: relative;
    background: linear-gradient(135deg, #0a420a 0%, #052705 100%);
}

.stat-item i {
    color: rgba(255, 255, 255, 0.9);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 15px 0 5px;
}

/* News Section */
.news-card {
    transition: var(--transition);
    margin-bottom: 30px;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

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

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

.news-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.card-title a {
    color: #333;
    transition: all 0.3s ease;
}

.card-title a:hover {
    color: var(--primary-color);
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    cursor: pointer;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.overlay-content {
    text-align: center;
    color: #fff;
    padding: 0 15px;
}

.overlay-content h5 {
    margin-bottom: 10px;
}

.gallery-buttons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    margin: 0 5px;
}

.gallery-buttons a:hover {
    background: #fff;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    position: relative;
}

/* Contact Section */
.contact-info-item .fs-4 {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
}

/* Footer */
.site-footer {
    background-color: #111827;
    color: #fff;
    position: relative;
}

.site-footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--info-color) 100%);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: block;
    padding: 6px 0;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 10px;
}

.contact-info li {
    margin-bottom: 15px;
}

.contact-info i {
    width: 25px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 8px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
    transform: translateY(0);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

hr {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Page Banner */
.page-banner {
    padding: 100px 0 80px;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1c4278 100%);
}

.page-banner h1 {
    font-weight: 700;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #fff;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

/* Sidebar */
.categories li a {
    color: #333;
    transition: all 0.3s ease;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.categories li a:hover {
    color: var(--primary-color);
}

.recent-post {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-img img {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

/* Detail Pages */
.post-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.post-meta span {
    margin-right: 15px;
}

.post-content {
    line-height: 1.8;
}

.post-tags {
    margin: 30px 0;
}

.share-buttons {
    margin-top: 30px;
}

.social-share a {
    margin-right: 10px;
}

/* Pagination */
.pagination .page-link {
    color: #333;
    padding: 10px 15px;
    border: none;
    margin: 0 5px;
    border-radius: 5px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Announcement List */
.announcement-item {
    transition: all 0.3s ease;
}

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

/* Teachers/Staff */
.team-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.team-img {
    position: relative;
    overflow: hidden;
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: rgba(10, 66, 10, 0.8);
    padding: 15px 0;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.team-card:hover .team-social {
    bottom: 0;
    opacity: 1;
}

.team-social a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: #fff;
    margin: 0 5px;
    text-align: center;
    line-height: 36px;
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Testimonial */
.testimonial-item {
    position: relative;
}

.testimonial-content {
    font-style: italic;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
}

.owl-carousel .owl-nav button.owl-next:hover,
.owl-carousel .owl-nav button.owl-prev:hover {
    background: #0b5ed7;
}

.owl-carousel .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    background: #ddd;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.owl-carousel .owl-dots .owl-dot.active span {
    background: var(--primary-color);
}

/* 404 Error Page */
.error-404 {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.error-number {
    font-size: 150px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1c4278 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.suggested-link {
    transition: all 0.3s ease;
}

.suggested-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* PPDB Page */
.timeline-item {
    position: relative;
    padding-left: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
}

.timeline-item:after {
    content: '';
    position: absolute;
    left: 7px;
    top: 21px;
    width: 2px;
    height: calc(100% - 14px);
    background: var(--primary-color);
}

.timeline-item:last-child:after {
    display: none;
}

/* Alumni Page */
.alumni-profile-img {
    width: 180px !important;
    height: 180px !important;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.lightbox-prev, 
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 35px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    padding: 15px;
    user-select: none;
    transition: var(--transition);
    z-index: 1060;
    background-color: rgba(0, 0, 0, 0.3);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, 
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 1060;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: #ccc;
    transform: scale(1.2);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    max-width: 80%;
    margin: 0 auto;
    border-radius: var(--border-radius);
}

.teacher-social .social-icon,
.alumni-social .social-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    margin: 0 5px;
    text-align: center;
    line-height: 36px;
    border-radius: 50%;
    color: #333;
    transition: all 0.3s ease;
}

.teacher-social .social-icon:hover,
.alumni-social .social-icon:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Contact Page */
.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(10, 66, 10, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

/* Academic Calendar */
.calendar-header {
    margin-bottom: 20px;
}

.academic-calendar table {
    width: 100%;
}

.academic-calendar th {
    text-align: center;
    font-weight: 600;
}

.academic-calendar td {
    text-align: center;
    padding: 8px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #052705;
}

/* Media Queries */
@media (max-width: 992px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 100px 0;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .about-img {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .navbar-nav {
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stat-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Lightbox Gallery */
.album-item {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
}

.album-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: rgba(10, 66, 10, 0.8);
    color: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.album-item:hover .album-zoom {
    opacity: 1;
}

.album-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    font-size: 0.85rem;
}