/* Modern and Sleek Custom Styles for Kikuyu Boys High School Website */

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #7c3aed;
    --accent-color: #a855f7;
    --dark-color: #0f172a;
    --light-color: #f1f5f9;
    --gradient: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 50%, #a855f7 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark-color);
}

.hero {
    background: var(--gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.navbar {
    background: var(--gradient) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    margin: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 500;
    color: white !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card img {
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.btn-primary {
    background: var(--gradient);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    background: var(--gradient);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Professional Footer Styling */
.footer-professional {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    margin-top: auto;
    padding-top: 40px;
    border-top: 3px solid #FF6B35;
    position: relative;
    overflow: hidden;
}

.footer-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-professional > .container {
    position: relative;
    z-index: 1;
}

footer {
    background: var(--dark-color);
    color: white;
    margin-top: auto;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    border-radius: 10px !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.list-group-item {
    border-left: 4px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0 10px 10px 0;
    margin-bottom: 5px;
}

/* Calendar styles */
#calendar {
    max-width: 100%;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-header {
    background: var(--gradient);
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.calendar-header h4 {
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    padding: 10px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    margin-bottom: 5px;
}

.calendar-day {
    height: 70px;
    border: 2px solid transparent;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    position: relative;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calendar-day:hover {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    border-color: var(--primary-color);
}

.calendar-day.today {
    background: var(--gradient);
    color: white;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    border: 2px solid var(--accent-color);
    animation: pulse 2s infinite;
}

.calendar-day.has-event {
    background: linear-gradient(135deg, #FFD23F 0%, #F7931E 100%);
    color: var(--dark-color);
    font-weight: bold;
    border: 2px solid var(--secondary-color);
}

.calendar-day.has-event::after {
    content: '📅';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 12px;
}

.calendar-day.other-month {
    opacity: 0.4;
    background: rgba(248, 249, 250, 0.5);
}

@keyframes pulse {
    0% { box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4); }
    50% { box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6); }
    100% { box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Animation for fade-in effect */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Additional modern touches */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--gradient) !important;
}

/* Glassmorphism effect for special elements */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
}

/* Footer Sections */
.footer-section {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.footer-section:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #FF6B35;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.2);
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF6B35;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info p {
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.contact-info i {
    color: #FF6B35;
    font-size: 1rem;
    min-width: 20px;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #FF6B35;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    color: #FF6B35;
    font-weight: bold;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 10px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.5), transparent);
    margin: 20px 0;
}

.social-footer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: #fff;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Professional Quick Links Styling */
.quick-links-section {
    margin-bottom: 20px;
}

.quick-links-section h5 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin: 0;
    padding: 0;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.quick-links a i {
    font-size: 0.85rem;
    width: 20px;
    text-align: center;
    color: #a855f7;
    transition: all 0.3s ease;
}

.quick-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.quick-links a:hover i {
    color: #fff;
    transform: scale(1.2);
}

/* Social Media Section */
.social-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-section h5 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #fff;
}

.social-links {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li {
    margin: 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-links a.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5bbd 100%);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.social-links a:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-links a.facebook:hover {
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.6);
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .footer-section {
        margin-bottom: 15px;
    }
    
    .footer-title {
        font-size: 0.95rem;
    }
    
    .social-footer {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 15px;
    }
    
    .footer-copyright {
        text-align: center !important;
        margin-top: 15px;
    }
}

/* Location Link Styling - Make it look clickable */
footer .col-md-6:first-child a[href*="google.com/maps"] {
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 10px;
}

footer .col-md-6:first-child a[href*="google.com/maps"]:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

footer .col-md-6:first-child a[href*="google.com/maps"] i {
    color: #ff6b35 !important;
    transition: all 0.3s ease;
}

footer .col-md-6:first-child a[href*="google.com/maps"]:hover i {
    color: #fff !important;
    transform: scale(1.2);
}

/* Phone and Email links styling */
footer .col-md-6:first-child p a {
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

footer .col-md-6:first-child p a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

/* Interactive Map Section Styles */
.map-section-header {
    text-align: center;
}

.map-section-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.map-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    display: block;
}

/* Address Cards */
.address-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.address-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.address-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.address-icon.contact-icon {
    background: linear-gradient(135deg, #0066cc 0%, #004fa3 100%);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.address-card h5 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.address-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

.address-text strong {
    color: var(--primary-color);
}

/* Get Directions Button */
.btn-primary {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E55A24 0%, #E6820D 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-lg {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive Map Section */
@media (max-width: 768px) {
    .map-container iframe {
        height: 350px !important;
    }

    .address-card {
        margin-bottom: 15px;
    }

    .map-section-header h2 {
        font-size: 1.8rem;
    }

    .btn-lg {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .map-container iframe {
        height: 280px !important;
    }

    .address-card {
        padding: 18px;
    }

    .address-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Summary card styling (hero) */
.summary-card {
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    background: #fff;
}
.summary-card .footer-text {
    color: rgba(0,0,0,0.75);
}
.summary-card h6 {
    letter-spacing: 1px;
    color: #6c757d;
}
.summary-card h3 {
    color: var(--dark-color);
}
.summary-card .stat-num {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .summary-card h3 { font-size: 1.2rem; }
}

/* Principal Horizontal Scroll Gallery */
.principal-scroll-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.principal-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    height: 100%;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.principal-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.principal-img {
    flex: 0 0 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.scroll-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    animation: fadeIn 1s ease-in;
}

@keyframes scrollHintPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.scroll-hint i {
    font-size: 0.65rem;
}




/* Remove all underlines from hero to leadership sections */
header.hero *, .summary-card *, section * {
    text-decoration: none !important;
}

.card-title, .card-text, .card-body h5, .card-body p {
    text-decoration: none !important;
}

h6, h3, h2, h4, h5, .text-uppercase, .text-muted, .fw-bold {
    border-bottom: none !important;
    text-decoration: none !important;
}
* {
    text-decoration: none !important;
}

.hero .d-flex {
    align-items: center !important;
}
.hero h1, .hero p, .hero .lead {
    color: white !important;
}

.hero .d-flex {
    flex-direction: row !important;
}
.hero .d-flex img {
    max-width: 120px !important;
    height: auto !important;
}
.hero .d-flex > div {
    flex: 1 !important;
}

body, html {
    overflow-x: hidden !important;
    max-width: 100% !important;
}
.container, .row {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

body, html {
    overflow-y: auto !important;
    height: auto !important;
}
