/* St. Mary's Secondary School - WordPress Style Theme */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #009688; /* Turquoise/Mint green from school uniform */
    --secondary-color: #1B5E20; /* Dark green from uniform bottoms */
    --accent-color:  #4CAF50;   /* Lighter green accent */
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #FFF8E7; /* Light beige/cream from image background */
    --gray-bg: #f5f5f5;
    --dark-bg: #0d2b12;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    gap: 30px;
    align-items: center;
}

.top-bar-contact a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

.top-bar-social {
    display: flex;
    gap: 15px;
}

.top-bar-social a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
}

.top-bar-social a:hover {
    color: var(--white);
    opacity: 0.8;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 998;
}

/* Bootstrap Navbar Customization */
.navbar {
    background-color: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-brand img {
    height: 60px;
    margin-right: 12px;
}

.logo-text h1 {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-light);
}

/* Navbar links styling */
.navbar-nav {
    gap: 15px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
    padding: 8px 12px !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 12px;
    width: calc(100% - 24px);
    height: 2px;
    background-color: var(--primary-color);
}

/* CTA Button */
.cta-button {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
    border: 2px solid var(--secondary-color);
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease-in-out;
}

.hero-slide.active img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(135deg, rgba(0, 150, 136, 0.5) 0%, rgba(27, 94, 32, 0.45) 100%);*/
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 20px;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transition-delay: 0.3s;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transition-delay: 0.5s;
}

.hero-content .cta-button {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transition-delay: 0.7s;
}

.hero-slide.active .hero-content h2,
.hero-slide.active .hero-content p,
.hero-slide.active .hero-content .cta-button {
    opacity: 1;
    transform: translateY(0);
}

/* Slider Navigation Dots */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-dot.active {
    background-color: var(--white);
    transform: scale(1.3);
    border-color: var(--white);
}

/* Slider Navigation Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow.prev {
    left: 20px;
}

.hero-arrow.next {
    right: 20px;
}

/* Welcome Section */
.welcome-section {
    padding: 80px 0;
    background-color: var(--white);
}

.welcome-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.welcome-text h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.welcome-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.principal-message {
    background-color: var(--light-bg);
    padding: 30px;
    border-left: 4px solid var(--secondary-color);
    margin-top: 30px;
}

.principal-message strong {
    color: var(--primary-color);
    font-size: 18px;
}

.principal-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* News Section */
.news-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.news-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title h2 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    font-size: 18px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-card-content {
    padding: 25px;
}

.news-card-content .category {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.news-card-content h3 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.news-card-content h3 a {
    color: var(--secondary-color);
    text-decoration: none;
}

.news-card-content h3 a:hover {
    color: var(--primary-color);
}

.news-card-content .date {
    color: var(--text-light);
    font-size: 14px;
}

.view-all-news {
    text-align: center;
    margin-top: 40px;
}

.view-all-news a {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.view-all-news a:hover {
    background-color: var(--accent-color);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--white);
}

.about-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text h2 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-text h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.about-btn {
    display: inline-block;
    margin-top: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.about-btn:hover {
    background-color: var(--accent-color);
}

/* Statistics Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.stats-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.stats-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #E0F2F1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* Academics Section */
.academics-section {
    padding: 80px 0;
    background-color: var(--white);
}

.academics-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.academics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.academic-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.academic-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.academic-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 150, 136, 0.95) 0%, rgba(27, 94, 32, 0.7) 100%);
    padding: 30px;
    color: var(--white);
}

.academic-card-overlay h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.view-all-academics {
    text-align: center;
    margin-top: 40px;
}

.view-all-academics a {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.view-all-academics a:hover {
    background-color: var(--primary-color);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.features-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
}

.feature-card h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    text-align: center;
    color: var(--white);
}

.cta-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-primary {
    background-color: var(--white);
    color: var(--secondary-color);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

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

.cta-secondary {
    background-color: transparent;
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    border: 2px solid var(--white);
}

.cta-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 80px 0 30px;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: var(--text-light);
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

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

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

.footer-links ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-contact p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.footer-contact a {
    color: var(--text-light);
    text-decoration: none;
}

.footer-social h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-social-links {
    display: flex;
    gap: 15px;
}

.footer-social-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .news-grid,
    .academics-grid,
    .features-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .welcome-content,
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-text p {
        font-size: 11px;
    }
}

@media (max-width: 900px) {
    .top-bar {
        display: none;
    }
    
    /* Bootstrap Navbar Mobile Styles */
    .navbar-collapse {
        background-color: var(--white);
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .navbar-nav {
        gap: 0;
    }
    
    .nav-link {
        padding: 15px 20px !important;
        border-bottom: 1px solid #f0f0f0;
        font-size: 16px;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-link.active {
        background-color: rgba(0, 150, 136, 0.1);
        border-left: 3px solid var(--primary-color);
    }
    
    /* SMIS CTA button on mobile */
    .nav-item:last-child .cta-button {
        display: block;
        text-align: center;
        margin: 20px 20px 0;
        padding: 12px 30px;
    }
    
    /* Hide desktop CTA button */
    .desktop-cta {
        display: none;
    }
}

@media (max-width: 768px) {
    header .container {
        padding: 10px 15px;
    }
    
    .logo img {
        height: 50px;
        margin-right: 10px;
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
    
    .logo-text p {
        font-size: 10px;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .news-grid,
    .academics-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    /* Section adjustments */
    .welcome-section,
    .about-section,
    .features-section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .section-title p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 400px;
    }
    
    .hero-content h2 {
        font-size: 26px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-title p {
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    /* Hero dots */
    .hero-dots {
        bottom: 20px;
    }
    
    .hero-dot {
        width: 10px;
        height: 10px;
    }
}