/* ===================================
   Page-Specific Styles
   =================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.breadcrumb {
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
    color: rgba(255,255,255,0.8);
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    transition: color var(--transition-speed) ease;
}

.breadcrumb a:hover {
    color: var(--white);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    margin: 0;
}

/* Content Layout */
.content-section {
    padding: var(--spacing-lg) 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 992px) {
    .content-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.content-main {
    max-width: 800px;
}

.content-main h2 {
    color: var(--primary-color);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.content-main h3 {
    color: var(--text-dark);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.content-main p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.content-main h2:first-child {
    margin-top: 0;
}

/* Content Lists */
.content-list {
    list-style: none;
    margin-left: 0;
    margin-bottom: var(--spacing-md);
}

.content-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.content-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.service-item {
    background: var(--light-tan);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--secondary-color);
    transition: transform var(--transition-speed) ease;
}

.service-item:hover {
    transform: translateX(5px);
}

.service-item h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.125rem;
}

.service-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.cta-box h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.cta-box p {
    color: rgba(255,255,255,0.95);
    margin-bottom: var(--spacing-md);
}

.cta-box .btn {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.cta-box .btn:hover {
    background: var(--light-tan);
    color: var(--primary-color);
}

/* Sidebar */
.content-sidebar {
    position: relative;
}

.sidebar-card {
    background: var(--gray-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    border-top: 3px solid var(--secondary-color);
}

.sidebar-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.sidebar-card h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.sidebar-card p {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xs);
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    border-bottom: 1px solid var(--gray-medium);
    padding: var(--spacing-xs) 0;
}

.sidebar-links li:last-child {
    border-bottom: none;
}

.sidebar-links a {
    color: var(--text-dark);
    transition: color var(--transition-speed) ease;
    display: block;
}

.sidebar-links a:hover {
    color: var(--secondary-color);
    padding-left: var(--spacing-xs);
}

/* Info Box */
.info-box {
    background: var(--cream);
    border-left: 4px solid var(--sage);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    border-radius: var(--radius-sm);
}

.info-box.warning {
    border-left-color: #FF9800;
    background: #FFF3E0;
}

.info-box.success {
    border-left-color: #00BFA5;
    background: #E0F2F1;
}

.info-box.info {
    border-left-color: #1E90FF;
    background: #E3F2FD;
}

.info-box h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Tables */
.content-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-md) 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.content-table thead {
    background: var(--primary-color);
    color: var(--white);
}

.content-table th,
.content-table td {
    padding: var(--spacing-sm);
    text-align: left;
}

.content-table tbody tr {
    border-bottom: 1px solid var(--gray-light);
}

.content-table tbody tr:hover {
    background: var(--light-tan);
}

/* Staff Cards */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.staff-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed) ease;
}

.staff-card:hover {
    transform: translateY(-5px);
}

.staff-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-sm);
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.staff-card h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.staff-card .title {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.staff-card .contact {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #e74c3c;
}

.form-help {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: var(--spacing-xs);
}

/* Timeline */
.timeline {
    position: relative;
    padding: var(--spacing-md) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary-color);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: var(--spacing-lg);
}

.timeline-marker {
    position: absolute;
    left: 19px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.timeline-content {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-date {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

/* Accordion */
.accordion {
    margin: var(--spacing-md) 0;
}

.accordion-item {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
}

.accordion-header {
    padding: var(--spacing-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-tan);
    transition: background var(--transition-speed) ease;
}

.accordion-header:hover {
    background: var(--cream);
}

.accordion-header h4 {
    margin: 0;
    color: var(--primary-color);
}

.accordion-icon {
    transition: transform var(--transition-speed) ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-body {
    padding: var(--spacing-md);
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.contact-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.contact-card h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.contact-card p {
    margin-bottom: var(--spacing-xs);
}

.contact-card a {
    color: var(--secondary-color);
    font-weight: 600;
}

.contact-card a.btn {
    color: var(--white) !important;
    font-weight: 600;
}

/* Program Cards - Modern Layout */
.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border-left: 4px solid var(--secondary-color);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.program-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--light-sky);
}

.program-card-header .program-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--light-sky), var(--sage));
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 50px;
}

.program-card-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
    flex: 1;
}

.program-card p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.program-card .content-list {
    margin-top: var(--spacing-sm);
}

@media (max-width: 768px) {
    .program-cards {
        grid-template-columns: 1fr;
    }
    
    .program-card-header h3 {
        font-size: 1.1rem;
    }
}

/* Contact Form Styles */
.contact-form {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: var(--spacing-md) 0;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.radio-group {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xs);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.form-actions .btn {
    flex: 1;
    min-width: 150px;
}

@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-marker {
        left: 7px;
    }
}
