/* 
    Arusha Victory School - Custom CSS
    Developer: [Your Name]
    Version: 1.0
*/

/* ====================
    Global Styles
===================== */
:root {
    --primary-color: rgb(8, 36, 103);
    --secondary-color: #F39C12;
    --dark-color: #333333;
    --light-color: #F8F9FA;
    --success-color: #28A745;
    --warning-color: #FFC107;
    --danger-color: #DC3545;
    --info-color: #17A2B8;
    --gray-color: #6C757D;
    --border-radius: 5px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #333;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #135995;
    text-decoration: none;
}

.container {
    max-width: 1200px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #135995;
    border-color: #135995;
}

.section-title {
    position: relative;
    margin-bottom: 30px;
}

.title-bar {
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 10px;
    margin-bottom: 20px;
}

.title-bar.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.page-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/banner-bg.png") no-repeat center center;
    background-size: cover;
    padding: 80px 0;
    color: white;
    margin-bottom: 30px;
}

.page-banner h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: white;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.8);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    z-index: 99;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ====================
    Header & Navigation
===================== */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    font-size: 14px;
}

.social-links a {
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.navbar-brand img.logo {
    max-height: 70px;
}

.navbar-light .navbar-nav .nav-link {
    color: #555;
    font-weight: 500;
    padding: 15px;
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-item:hover {
    background-color: rgba(27, 117, 188, 0.1);
    color: var(--primary-color);
}

/* ====================
    Hero Section
===================== */
.hero-slide {
    background-position: center;
    background-size: cover;
    height: 800px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
}

.slide1 {
    background-image: url('../images/slider/slide1.jpg');
}

.slide2 {
    background-image: url('../images/slider/slide2.jpg');
}

.slide3 {
    background-image: url('../images/slider/slide3.jpg');
}

.hero-content {
    position: relative;
    color: white;
    text-align: center;
    padding: 30px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* ====================
    Feature Boxes
===================== */
.feature-box {
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    color: var(--primary-color);
}

/* ====================
    Stats Section
===================== */
.stats-section {
    background-color: var(--primary-color);
    color: white;
}

.stat-item h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

/* ====================
    News Section
===================== */
.news-item {
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}

.news-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-img {
    position: relative;
    overflow: hidden;
}

.news-date {
    position: absolute;
    left: 20px;
    top: 20px;
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    text-align: center;
    border-radius: 5px;
}

.news-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.news-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.news-content h4 a {
    color: #333;
    transition: all 0.3s ease;
}

.news-content h4 a:hover {
    color: var(--primary-color);
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #135995;
}

/* ====================
    Testimonials
===================== */
.testimonial-item {
    position: relative;
}

.testimonial-img img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding: 0 30px;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-family: 'Georgia', serif;
    font-size: 60px;
    color: rgba(27, 117, 188, 0.2);
    position: absolute;
    top: -10px;
    left: 0;
}

.testimonial-text::after {
    content: '"';
    left: auto;
    right: 0;
    bottom: -30px;
    top: auto;
}

/* ====================
    Footer
===================== */
.footer {
    background-color: #222;
    color: white;
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white;
    text-decoration: none;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    color: white;
}

.copyright {
    background-color: var(--primary-color);
    color: white;
}

/* ====================
    About Page
===================== */
.about-img img,
.about-video {
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.vision-box,
.mission-box {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vision-box:hover,
.mission-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

.team-member {
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-img img {
    width: 170px;
    height: 170px;
    object-fit: cover;
}

/* ====================
    Academics Page
===================== */
.curriculum-box {
    transition: all 0.3s ease;
}

.curriculum-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.curriculum-list li {
    margin-bottom: 8px;
}

.performance-box {
    transition: all 0.3s ease;
}

.performance-box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ====================
    Admissions Page
===================== */
.process-timeline .timeline-item {
    position: relative;
}

.timeline-icon {
    color: var(--primary-color);
}

.requirements-box {
    transition: all 0.3s ease;
}

.requirements-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.requirements-list {
    list-style: none;
    padding-left: 0;
}

.requirements-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
    position: relative;
    padding-left: 25px;
}

.requirements-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 8px;
}

.requirements-list li:last-child {
    border-bottom: none;
}

.fee-list,
.payment-options {
    list-style: none;
    padding-left: 0;
}

.fee-list li,
.payment-options li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

.fee-list li::before,
.payment-options li::before {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

.form-section-title {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* ====================
    Gallery Page
===================== */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.gallery-image {
    display: block;
    overflow: hidden;
}

.gallery-image img {
    transition: transform 0.5s ease;
    object-fit: cover;
    width: 100%;
    height: 220px;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 117, 188, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-info {
    text-align: center;
    padding: 20px;
}

.gallery-info h5 {
    color: white;
    margin-bottom: 5px;
}

.gallery-info span {
    display: block;
    font-size: 14px;
    opacity: 0.8;
}

.filter-btn {
    margin-right: 5px;
    margin-bottom: 10px;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.video-thumbnail {
    overflow: hidden;
}

.video-thumbnail img {
    transition: transform 0.5s ease;
    height: 200px;
    object-fit: cover;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(27, 117, 188, 0.8);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 20px;
    transition: all 0.3s ease;
}

.video-play-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* ====================
    News & Events Page
===================== */
.sidebar-widget {
    margin-bottom: 30px;
}

.widget-title {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.widget-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.categories-list li,
.archive-list li {
    margin-bottom: 10px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 10px;
}

.categories-list li:last-child,
.archive-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.featured-news-item {
    transition: all 0.3s ease;
}

.featured-news-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-item {
    display: flex;
    align-items: flex-start;
}

.event-date {
    flex: 0 0 70px;
    margin-right: 15px;
}

.event-content {
    flex: 1;
}

.event-content h5 {
    margin-bottom: 5px;
}

.event-content h5 a {
    color: #333;
    transition: all 0.3s ease;
}

.event-content h5 a:hover {
    color: var(--primary-color);
}

/* ====================
    Contact Page
===================== */
.contact-box {
    transition: all 0.3s ease;
}

.contact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    color: var(--primary-color);
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #135995;
    color: white;
    transform: translateY(-3px);
}

.map-container {
    position: relative;
    overflow: hidden;
    height: 450px;
}

/* ====================
    Responsive Styles
===================== */
@media (max-width: 1199.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .hero-slide {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .gallery-image img {
        height: 180px;
    }
}

@media (max-width: 767.98px) {
    .hero-slide {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .page-banner {
        padding: 50px 0;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .stats-section .stat-item {
        margin-bottom: 30px;
    }
    
    .gallery-image img {
        height: 220px;
    }
}

@media (max-width: 575.98px) {
    .hero-slide {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
}