/* 
* Divine Glory School - Main Stylesheet
* Author: Cascade
* Version: 1.0
*/

/* ===== GENERAL STYLES ===== */
:root {
    --primary-color: #1a237e; /* Deep blue from the logo */
    --secondary-color: #ffcc00; /* Gold/yellow from the logo */
    --accent-color: #00bcd4; /* Light blue from the logo */
    --light-color: #ffffff; /* White */
    --dark-color: #0a1144; /* Darker shade of the deep blue */
    --text-color: #333333; /* Dark text for readability */
    --border-color: #dee2e6;
    --footer-color: #1a237e; /* Same as primary color for consistency */
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

.btn {
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.section-padding {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 40px;
}

.section-title h2 {
    position: relative;
    margin-bottom: 15px;
    font-size: 36px;
}

.separator {
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin-bottom: 20px;
}

.bg-light {
    background-color: #f8f9fa !important;
}

img {
    max-width: 100%;
}

/* ===== HEADER STYLES ===== */
header {
    transition: var(--transition);
}

.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
}

.social-links a {
    color: white;
    margin-left: 15px;
    font-size: 14px;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand h1 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 0;
}

.logo-img {
    max-height: 80px;
    width: auto;
    display: block;
    margin: 0 auto;
    background-color: transparent;
    border-radius: 50%;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 15px;
}

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

.apply-btn {
    background-color: var(--secondary-color);
    color: white !important;
    border-radius: 5px;
    margin-left: 10px;
}

.apply-btn:hover {
    background-color: #e0a500;
    color: white !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

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

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

/* ===== HERO SLIDER ===== */
.hero-slider {
    margin-top: 118px;
}

.swiper-slide {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary-color);
}

/* ===== WELCOME SECTION ===== */
.welcome-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== PROGRAMS SECTION ===== */
.program-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin-bottom: 30px;
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.program-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background-color: #f1f5ff;
    border-radius: 50%;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

.program-icon i {
    font-size: 36px;
}

.program-card h3 {
    margin-bottom: 15px;
}

.program-card p {
    margin-bottom: 20px;
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-item {
    display: flex;
    margin-bottom: 25px;
}

.why-choose-item .icon {
    flex: 0 0 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: #f1f5ff;
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 20px;
}

.why-choose-item .icon i {
    font-size: 20px;
}

.why-choose-item .content {
    flex: 1;
}

.why-choose-item h4 {
    margin-bottom: 5px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin: 20px 10px;
}

.quote-icon {
    color: var(--secondary-color);
    font-size: 30px;
    margin-bottom: 15px;
}

.testimonial-author {
    margin-top: 20px;
}

.testimonial-author h4 {
    margin-bottom: 5px;
}

.testimonial-author span {
    color: #6c757d;
    font-size: 14px;
}

/* ===== NEWS SECTION ===== */
.news-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-image {
    position: relative;
}

.news-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 10px 15px;
    line-height: 1.2;
}

.news-date span {
    display: block;
}

.news-date span:first-child {
    font-size: 24px;
    font-weight: 700;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover i {
    margin-left: 10px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 10px;
}

/* ===== FOOTER SECTION ===== */
.footer-section {
    background-color: var(--footer-color);
    color: white;
    padding: 70px 0 0;
}

.footer-about h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--secondary-color);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 50px;
}

.copyright p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

.copyright i {
    color: var(--accent-color);
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 99;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* ===== INNER PAGES COMMON STYLES ===== */
.page-header {
    background-color: var(--primary-color);
    padding: 100px 0 50px;
    margin-top: 118px;
    text-align: center;
    color: white;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.page-header h1 {
    position: relative;
    color: white;
    font-size: 42px;
    margin-bottom: 10px;
}

.breadcrumb {
    position: relative;
    background: transparent;
    justify-content: center;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.8);
}
