/**
 * Cambrian Hall - Custom Styles
 * Brand colors and custom styling for the school website
 *
 * @version 1.0.0
 */

/* ==========================================================================
   CSS Variables / Brand Colors
   ========================================================================== */
:root {
    --ch-primary: #1a3a5c;       /* Navy Blue */
    --ch-accent: #d4a844;         /* Gold/Yellow */
    --ch-secondary: #5a8cc8;      /* Secondary Blue */
    --ch-orange: #e8a04c;         /* Orange Accent */
    --ch-text: #4a5568;           /* Text Gray */
    --ch-bg-light: #f7f8fa;       /* Light Background */
    --ch-white: #ffffff;
}

/* ==========================================================================
   Global Typography
   ========================================================================== */
body {
    color: var(--ch-text);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ch-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.tp-btn {
    background: var(--ch-primary);
    color: var(--ch-white);
    transition: all 0.3s ease;
}

.tp-btn:hover {
    background: var(--ch-secondary);
    color: var(--ch-white);
}

.tp-btn.tp-btn-gold {
    background: var(--ch-accent);
    color: var(--ch-primary);
}

.tp-btn.tp-btn-gold:hover {
    background: #c4982f;
    color: var(--ch-primary);
}

.tp-btn.tp-btn-outline {
    background: transparent;
    border: 2px solid var(--ch-white);
    color: var(--ch-white);
}

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

/* ==========================================================================
   Section Titles
   ========================================================================== */
.tp-section-title-pre,
.tp-section-title-pre-2 {
    color: var(--ch-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
}

.tp-section-title {
    color: var(--ch-primary);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.tp-header-main-menu .tp-main-menu-content > ul > li > a {
    color: var(--ch-primary);
}

.tp-header-main-menu .tp-main-menu-content > ul > li:hover > a {
    color: var(--ch-accent);
}

.tp-main-menu-content .submenu {
    background: var(--ch-white);
    border-top: 3px solid var(--ch-accent);
}

.tp-main-menu-content .submenu li a:hover {
    color: var(--ch-accent);
}

/* ==========================================================================
   Cards and Boxes
   ========================================================================== */
.tp-service-item {
    background: var(--ch-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.tp-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Accordion Styles (Navy Blue Header)
   ========================================================================== */
.accordion-item {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.accordion-button {
    background: var(--ch-primary);
    color: var(--ch-white);
    font-weight: 600;
    padding: 18px 25px;
}

.accordion-button:not(.collapsed) {
    background: var(--ch-primary);
    color: var(--ch-white);
    box-shadow: none;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    background: var(--ch-white);
    padding: 25px;
}

/* ==========================================================================
   Statistics Cards
   ========================================================================== */
.tp-stat-card {
    background: var(--ch-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.tp-stat-card:hover {
    transform: translateY(-5px);
}

.tp-stat-card.gold-border {
    border-top: 4px solid var(--ch-accent);
}

.tp-stat-card.blue-border {
    border-top: 4px solid var(--ch-secondary);
}

.tp-stat-card.orange-border {
    border-top: 4px solid var(--ch-orange);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.tp-footer-5-area {
    background-color: var(--ch-primary);
}

.tp-footer-widget-title {
    color: var(--ch-white);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.tp-footer-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--ch-accent);
}

.tp-footer-widget-content ul li a {
    color: #b8c5d4;
    transition: all 0.3s ease;
}

.tp-footer-widget-content ul li a:hover {
    color: var(--ch-accent);
    padding-left: 5px;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb__title {
    color: var(--ch-white);
}

.breadcrumb__list span a {
    color: var(--ch-white);
}

.breadcrumb__list span a:hover {
    color: var(--ch-accent);
}

/* ==========================================================================
   Progress Bars
   ========================================================================== */
.progress-bar {
    background: var(--ch-accent);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.tp-contact-info-icon {
    color: var(--ch-accent);
}

.tp-contact-info-title {
    color: var(--ch-primary);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 991px) {
    .tp-section-title {
        font-size: 28px;
    }

    .tp-stat-card h2 {
        font-size: 42px;
    }
}

@media (max-width: 767px) {
    .tp-section-title {
        font-size: 24px;
    }

    .tp-stat-card h2 {
        font-size: 36px;
    }

    .tp-hero-title {
        font-size: 28px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.bg-navy {
    background-color: var(--ch-primary) !important;
}

.bg-gold {
    background-color: var(--ch-accent) !important;
}

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

.text-gold {
    color: var(--ch-accent) !important;
}

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

.border-gold {
    border-color: var(--ch-accent) !important;
}

/* ==========================================================================
   Login Button Style
   ========================================================================== */
.tp-btn-login {
    background: var(--ch-accent) !important;
    color: var(--ch-primary) !important;
    padding: 10px 25px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-block;
}

.tp-btn-login:hover {
    background: #c4982f !important;
    color: var(--ch-primary) !important;
}
