/* Custom styles for Punjabi School Bothell */
/* Color theme: Saffron/Orange with Navy accents */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap');

:root {
    --primary-color: #f58634;
    --primary-dark: #e67524;
    --primary-light: #ffb380;
    --secondary-color: #1a365d;
    --accent-color: #ff9f43;
    --light-bg: #fff9f0;
    --cream-bg: #fef7ed;
    --text-dark: #2d3748;
    --text-muted: #718096;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Override Bootstrap primary color */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 134, 52, 0.4);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Navbar */
.navbar {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-logo {
    height: 70px;
    width: 70px;
    object-fit: cover;
    margin-right: 12px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    opacity: 0.85;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #c95d10 100%);
    min-height: 480px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://punjabischoolbothell.org/Skins/psb_v1/assets/images/untitled-design-12-1080x1080.png') right center no-repeat;
    background-size: contain;
    opacity: 0.15;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section .lead {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 3.5rem 0;
    position: relative;
}

.page-header h1 {
    font-weight: 800;
    font-size: 2.5rem;
}

/* Section Styling */
.section-title {
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-header {
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(245, 134, 52, 0.15);
}

.feature-card-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-card-img {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.feature-card h4 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Value Cards (About page) */
.value-card {
    background: linear-gradient(135deg, var(--cream-bg) 0%, white 100%);
    border: 2px solid var(--primary-light);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245, 134, 52, 0.15);
}

.value-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.value-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.course-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.course-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.25rem 1.5rem;
}

.course-card .card-header h3 {
    margin: 0;
    font-weight: 700;
    font-size: 1.3rem;
}

.course-card .card-body {
    padding: 1.5rem;
}

.course-card ul {
    padding-left: 1.5rem;
}

.course-card ul li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.course-card .required-text {
    background: var(--cream-bg);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    margin-top: 1.5rem;
}

/* Resource Cards */
.resource-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.resource-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.resource-card h4 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.resource-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Contact Info Sidebar */
.contact-sidebar {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0f2440 100%);
    color: white;
    border-radius: 20px;
    padding: 2rem;
}

.contact-sidebar h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.contact-sidebar ul li {
    margin-bottom: 1rem;
}

.contact-sidebar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-sidebar a:hover {
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--cream-bg) 0%, var(--light-bg) 100%);
    border-top: 4px solid var(--primary-color);
}

/* Background Variations */
.bg-cream {
    background-color: var(--cream-bg);
}

.bg-gradient-light {
    background: linear-gradient(180deg, white 0%, var(--cream-bg) 100%);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0f2440 100%) !important;
}

footer h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

footer .footer-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

/* Quick Links in Footer */
footer .quick-links li {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section {
        min-height: 400px;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.85rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 0.95rem;
    }
    
    .navbar-logo {
        height: 45px;
        width: 45px;
    }
    
    .contact-sidebar {
        margin-top: 2rem;
    }
    
    .feature-card-img {
        width: 120px;
        height: 120px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    color: white;
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(245, 134, 52, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 134, 52, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Apply animations to elements */
.hero-section h1,
.hero-section .lead {
    animation: fadeInUp 0.8s ease-out;
}

.hero-section .lead {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.feature-card,
.course-card,
.resource-card,
.value-card {
    animation: fadeIn 0.6s ease-out;
}

/* Loading state for images */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .back-to-top {
        transition: none;
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .back-to-top,
    .skip-link {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
