/* About Page Styles */

.about-page {
    background-color: #f8fafc;
}

/* Hero Section */
.about-hero {
    background: linear-gradient(135deg, rgba(24, 56, 159, 0.25) 0%, rgba(20, 89, 200, 0.25) 100%);
    color: white;
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../../NSBM-Library/nsbm-pics/landscape-picture-of-the-library.jpg') center/cover;
    opacity: 0.8;
    z-index: 1;
}

.about-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.35) 0%, rgba(59, 130, 246, 0.25) 100%);
    z-index: 2;
}

.about-hero .container {
    position: relative;
    z-index: 3;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8), 1px 1px 4px rgba(0, 0, 0, 0.9);
    color: #ffffff;
}

.about-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 1px 1px 3px rgba(0, 0, 0, 0.9);
    color: #ffffff;
    font-weight: 400;
    line-height: 1.6;
}

/* Navigation Tabs */
.about-tabs-section {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.about-nav-tabs {
    border: none;
    justify-content: center;
    gap: 2rem;
}

.about-nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    color: #6b7280;
    font-weight: 500;
    padding: 1.5rem 0;
    position: relative;
    background: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

.about-nav-tabs .nav-link:hover {
    color: #3b82f6;
    border-color: transparent;
}

.about-nav-tabs .nav-link.active {
    color: #3b82f6;
    background: none;
    border-color: transparent;
}

.about-nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3b82f6;
    border-radius: 2px 2px 0 0;
}

/* Content Sections */
.about-content-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.section-header h2 i {
    color: #3b82f6;
    margin-right: 0.5rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Vision Mission Cards */
.vision-mission-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.vision-mission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.vision-mission-card .card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.vision-mission-card .card-icon i {
    font-size: 1.5rem;
    color: white;
}

.vision-mission-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.vision-mission-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Objectives List */
.objectives-list {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.objectives-list h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.objectives-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.objectives-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.objectives-list li:last-child {
    margin-bottom: 0;
}

.objectives-list li i {
    color: #3b82f6;
    margin-right: 1rem;
    margin-top: 0.25rem;
    font-size: 1.125rem;
}

.objectives-list li span {
    color: #374151;
    line-height: 1.6;
}

/* Strategic Goals */
.goal-category {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.goal-category h4 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.goal-category h4 i {
    color: #3b82f6;
}

.goal-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #3b82f6;
}

.goal-item:last-child {
    margin-bottom: 0;
}

.goal-item h6 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.goal-item p {
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Policies Section */
.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Policy Cards as Links */
.policy-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.policy-link:hover {
    text-decoration: none;
    color: inherit;
}

.policy-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.policy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.policy-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.policy-card:hover::before {
    left: 100%;
}

.policy-card:active {
    transform: translateY(-4px) scale(1.01);
    transition: all 0.1s ease;
}

.policy-card h6 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.policy-card i {
    color: #3b82f6;
    font-size: 1rem;
}

/* Policy Detail Sections */
.policy-detail {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-margin-top: 180px; /* Account for fixed header */
}

.policy-detail.highlight {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: scale(1.02);
}

.policy-detail.highlight h3 {
    color: #3b82f6;
}

/* Smooth scrolling animations */
.scroll-highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1));
    border-left: 4px solid #3b82f6;
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
        transform: scale(1.01);
    }
    100% {
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
        transform: scale(1);
    }
}

/* Tab content smooth transitions */
.tab-content .tab-pane {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content .tab-pane.fade:not(.show) {
    opacity: 0;
    transform: translateY(20px);
}

.tab-content .tab-pane.fade.show {
    opacity: 1;
    transform: translateY(0);
}

.policy-detail h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.policy-detail h4 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #374151;
    margin: 2rem 0 1rem 0;
}

.policy-detail p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.policy-detail ul, .policy-detail ol {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.policy-detail li {
    margin-bottom: 0.5rem;
}

/* Table Styles */
.policy-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin: 1.5rem 0;
}

.policy-table table {
    width: 100%;
    margin: 0;
}

.policy-table th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    padding: 1rem;
    border-bottom: 2px solid #e5e7eb;
    text-align: left;
}

.policy-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
}

.policy-table tr:last-child td {
    border-bottom: none;
}

/* Rules and Regulations */
.rules-list {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.rules-list ol {
    counter-reset: rule-counter;
    list-style: none;
    padding: 0;
}

.rules-list li {
    counter-increment: rule-counter;
    position: relative;
    padding: 1.5rem 0 1.5rem 3rem;
    border-bottom: 1px solid #e5e7eb;
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li::before {
    content: counter(rule-counter);
    position: absolute;
    left: 0;
    top: 1.5rem;
    width: 2rem;
    height: 2rem;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.rules-list li p {
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero {
        padding: 140px 0 80px;
    }
    
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-hero p {
        font-size: 1.125rem;
    }
    
    .about-nav-tabs {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .about-nav-tabs .nav-link {
        padding: 1rem 0;
        font-size: 0.875rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .vision-mission-card,
    .objectives-list,
    .policy-detail,
    .rules-list {
        padding: 1.5rem;
    }
    
    .policies-grid {
        grid-template-columns: 1fr;
    }
    
    .about-tabs-section {
        position: relative;
    }
}

@media (max-width: 576px) {
    .about-hero {
        padding: 120px 0 60px;
    }
    
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .vision-mission-card,
    .objectives-list,
    .policy-detail,
    .rules-list {
        padding: 1rem;
    }
    
    .rules-list li {
        padding: 1rem 0 1rem 2.5rem;
    }
    
    .rules-list li::before {
        top: 1rem;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .about-tabs-section,
    .about-hero {
        display: none;
    }
    
    .about-content-section {
        padding: 1rem 0;
    }
    
    .vision-mission-card,
    .policy-detail,
    .rules-list {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
