/* Subpage Specific Styles */

.subpage-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    background-image: url('/assets/images/banner-subpage.svg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    margin-top: 70px;
}

.subpage-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 51, 102, 0.75);
}

.subpage-hero .hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0;
}

.subpage-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subpage-hero p {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.95);
}

.subpage-content {
    padding: 4rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.main-content {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.main-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.main-content h2:first-child {
    margin-top: 0;
}

.main-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.main-content h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.content-list {
    margin: 1.5rem 0;
    padding-left: 0;
}

.content-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.8;
}

.content-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.content-list.numbered {
    list-style: decimal;
    padding-left: 2rem;
}

.content-list.numbered li {
    padding-left: 0.5rem;
}

.content-list.numbered li::before {
    display: none;
}

/* Program Categories */
.program-category {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.program-category h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.program-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.program-item {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.program-item h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.program-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: var(--text-light);
    transition: var(--transition);
}

.sidebar-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.sidebar-widget p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.sidebar-widget p:last-child {
    margin-bottom: 0;
}

/* Scholarship Types */
.scholarship-type {
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.scholarship-type h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.scholarship-type h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
}

/* Support Services */
.support-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-item {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--accent-color);
}

.service-item h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.service-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Process Steps Detailed */
.process-step-detailed {
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.step-number-large {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.step-content-detailed h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
}

/* Fee Tables */
.fee-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    min-width: 600px;
}

.fee-table thead {
    background-color: var(--primary-color);
    color: white;
}

.fee-table th,
.fee-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.fee-table tbody tr:hover {
    background-color: var(--bg-light);
}

.fee-notice {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.fee-notice p {
    margin: 0;
    color: var(--text-dark);
}

/* CTA Section */
.cta-section {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 8px;
    text-align: center;
    color: white;
}

.cta-section h2 {
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.95);
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.cta-section .btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-section .btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .sidebar-widget {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .subpage-hero {
        min-height: 300px;
        margin-top: 60px;
    }

    .subpage-hero h1 {
        font-size: 2rem;
    }

    .subpage-hero p {
        font-size: 1.25rem;
    }

    .main-content {
        padding: 1.5rem;
    }

    .program-items {
        grid-template-columns: 1fr;
    }

    .support-services {
        grid-template-columns: 1fr;
    }

    .step-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}
