/* public/css/pages/about.css - About Us pages specific styles */

/* CSS Variables for About Pages */
:root {
    --about-primary: #1B4E3B;
    --about-secondary: #267055;
    --about-accent: #3EB489;
    --about-light: #7CD2B3;
    --about-bg: #f8fffe;
    --about-card-bg: #ffffff;
    --about-border: #e1f5f0;
    --about-text: #333333;
    --about-text-muted: #666666;
    --about-shadow: rgba(27, 78, 59, 0.1);
    --about-gradient: linear-gradient(135deg, #1B4E3B 0%, #3EB489 100%);
}

/* ========================================
   PAGE HEADER STYLES
   ======================================== */
.page-header {
    background: var(--about-gradient);
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

/* .page-header::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 1000 100" fill="none"><path d="M0,0 C200,80 400,20 600,60 C800,100 900,40 1000,60 L1000,0 Z" fill="rgba(255,255,255,0.1)"/></svg>') repeat-x;
    background-size: 1000px 100px;
    animation: wave 20s linear infinite;
} */

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1000px); }
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.page-title i {
    font-size: 2rem;
    margin-right: 1rem;
    opacity: 0.9;
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 400;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.4;
}

.page-stats {
    position: relative;
    z-index: 2;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.stat-item i {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Breadcrumb */
.breadcrumb-section {
    background: var(--about-bg);
    padding: 1rem 0;
    border-bottom: 1px solid var(--about-border);
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--about-secondary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--about-primary);
}

.breadcrumb-item.active {
    color: var(--about-text-muted);
}

/* ========================================
   HISTORY CONTENT STYLES
   ======================================== */
.history-content {
    padding: 3rem 0;
    background: var(--about-bg);
}

.history-article {
    background: var(--about-card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px var(--about-shadow);
    border: 1px solid var(--about-border);
}

.history-section {
    margin-bottom: 3rem;
    position: relative;
}

.history-section:last-child {
    margin-bottom: 0;
}

.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--about-border);
    position: relative;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--about-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h3 i {
    font-size: 1.3rem;
    width: 2rem;
    text-align: center;
}

.section-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--about-text);
}

.section-content p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

.section-content p.lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--about-primary);
    background: var(--about-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--about-accent);
    margin-bottom: 1.5rem;
}

.section-content strong {
    color: var(--about-primary);
    font-weight: 600;
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, var(--about-bg) 0%, rgba(62, 180, 137, 0.05) 100%);
    border: 1px solid var(--about-border);
    border-left: 4px solid var(--about-accent);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.highlight-box i {
    color: var(--about-accent);
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.highlight-box p {
    margin: 0;
    font-weight: 500;
}

.highlight-box.success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%);
    border-left-color: #28a745;
}

.highlight-box.success i {
    color: #28a745;
}

/* Achievement Box */
.achievement-box {
    background: var(--about-gradient);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.achievement-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.achievement-box i {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.achievement-box h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.achievement-box p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

/* Statistics Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--about-card-bg);
    border: 2px solid var(--about-border);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--about-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--about-shadow);
    border-color: var(--about-accent);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--about-accent);
    margin-bottom: 1rem;
}

.stat-card h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--about-primary);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--about-text-muted);
    margin: 0;
    font-weight: 500;
}

/* ========================================
   SIDEBAR STYLES
   ======================================== */
.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: var(--about-card-bg);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--about-shadow);
    border: 1px solid var(--about-border);
}

.widget-title {
    background: var(--about-gradient);
    color: white;
    padding: 1.25rem 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.widget-title i {
    font-size: 1rem;
    opacity: 0.9;
}

.widget-content {
    padding: 1.5rem;
}

/* Leadership Timeline */
.leadership-timeline {
    position: relative;
}

.leadership-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--about-border);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--about-border);
}

.timeline-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--about-card-bg);
    border: 3px solid var(--about-accent);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item.current::before {
    background: var(--about-accent);
    animation: pulse-timeline 2s infinite;
}

@keyframes pulse-timeline {
    0% { box-shadow: 0 0 0 0 rgba(62, 180, 137, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(62, 180, 137, 0); }
    100% { box-shadow: 0 0 0 0 rgba(62, 180, 137, 0); }
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--about-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--about-primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--about-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Milestone List */
.milestone-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--about-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.milestone-item:hover {
    background: rgba(62, 180, 137, 0.1);
    transform: translateX(5px);
}

.milestone-item.highlight {
    background: rgba(62, 180, 137, 0.1);
    border: 1px solid var(--about-accent);
}

.milestone-year {
    background: var(--about-accent);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.milestone-text {
    font-size: 0.9rem;
    color: var(--about-text);
    font-weight: 500;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--about-bg);
    color: var(--about-text);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.quick-link:hover {
    background: var(--about-accent);
    color: white;
    transform: translateX(5px);
    text-decoration: none;
    border-color: var(--about-accent);
}

.quick-link i:first-child {
    color: var(--about-accent);
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
    transition: color 0.3s ease;
}

.quick-link:hover i:first-child {
    color: white;
}

.quick-link span {
    flex: 1;
    font-weight: 500;
}

.quick-link i:last-child {
    opacity: 0.6;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.quick-link:hover i:last-child {
    opacity: 1;
    transform: translateX(3px);
}

/* ========================================
   VISION MISSION SPECIFIC STYLES
   ======================================== */

/* Vision Statement */
.vision-statement {
    background: var(--about-gradient);
    color: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.vision-statement::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: float 30s linear infinite;
}

.vision-statement .lead {
    font-size: 1.3rem;
    line-height: 1.8;
    margin: 0;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.vision-statement strong {
    color: var(--about-accent);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Section Subtitle */
.section-subtitle {
    color: var(--about-accent);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Mission List */
.mission-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.mission-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--about-bg);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--about-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--about-accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mission-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px var(--about-shadow);
    border-color: var(--about-accent);
}

.mission-item:hover::before {
    transform: scaleY(1);
}

.mission-number {
    background: var(--about-accent);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(62, 180, 137, 0.3);
    transition: all 0.3s ease;
}

.mission-item:hover .mission-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(62, 180, 137, 0.4);
}

.mission-content {
    flex: 1;
}

.mission-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--about-text);
    font-weight: 500;
}

/* Objectives Grid */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.objective-card {
    background: var(--about-card-bg);
    border: 2px solid var(--about-border);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.objective-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--about-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.objective-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--about-shadow);
    border-color: var(--about-accent);
}

.objective-card:hover::before {
    transform: scaleX(1);
}

.objective-icon {
    margin-bottom: 1.5rem;
}

.objective-icon i {
    font-size: 3rem;
    color: var(--about-accent);
    transition: all 0.3s ease;
}

.objective-card:hover .objective-icon i {
    transform: scale(1.1);
    color: var(--about-primary);
}

.objective-content h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--about-primary);
    margin-bottom: 1rem;
}

.objective-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--about-text-muted);
    margin: 0;
}

/* Core Values Styles */
.core-values {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--about-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.value-item:hover {
    background: rgba(62, 180, 137, 0.1);
    transform: translateX(5px);
}

.value-item i {
    font-size: 2rem;
    width: 3rem;
    text-align: center;
    flex-shrink: 0;
}

.value-item h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--about-primary);
    margin-bottom: 0.25rem;
}

.value-item p {
    font-size: 0.85rem;
    color: var(--about-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Achievement Stats */
.achievement-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item-small {
    background: var(--about-bg);
    border: 1px solid var(--about-border);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--about-shadow);
    border-color: var(--about-accent);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--about-accent);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--about-text-muted);
    font-weight: 500;
    line-height: 1.3;
}

/* ========================================
   RESPONSIVE DESIGN FOR VISION MISSION
   ======================================== */
@media (max-width: 991px) {
    .objectives-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .mission-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .mission-number {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .vision-statement {
        padding: 2rem 1.5rem;
    }
    
    .vision-statement .lead {
        font-size: 1.1rem;
    }
    
    .objectives-grid {
        grid-template-columns: 1fr;
    }
    
    .objective-card {
        padding: 1.5rem;
    }
    
    .objective-icon i {
        font-size: 2.5rem;
    }
    
    .achievement-stats {
        grid-template-columns: 1fr;
    }
    
    .core-values .value-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .value-item i {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .mission-item {
        padding: 1.25rem;
    }
    
    .mission-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .objective-card {
        padding: 1.25rem;
    }
    
    .vision-statement {
        padding: 1.5rem 1rem;
    }
    
    .vision-statement .lead {
        font-size: 1rem;
    }
}
@media (max-width: 1200px) {
    .stats-row {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 991px) {
    .sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-title i {
        font-size: 1.5rem;
    }
    
    .history-article {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0 2rem;
    }
    
    .page-title {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .page-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .page-stats {
        text-align: center;
        margin-top: 1rem;
    }
    
    .history-article {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .section-header h3 {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    .leadership-timeline::before {
        left: 0.75rem;
    }
    
    .timeline-item::before {
        left: 0.25rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-title i {
        display: none;
    }
    
    .history-content {
        padding: 2rem 0;
    }
    
    .history-article {
        padding: 1.25rem;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .achievement-box {
        padding: 1.5rem;
    }
    
    .achievement-box i {
        font-size: 2.5rem;
    }
    
    .sidebar-widget {
        margin-bottom: 1rem;
    }
    
    .widget-content {
        padding: 1.25rem;
    }
    
    .highlight-box {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .highlight-box i {
        margin-top: 0;
    }
}

/* ========================================
   ANIMATION ENHANCEMENTS
   ======================================== */
.history-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.history-section:nth-child(1) { animation-delay: 0.1s; }
.history-section:nth-child(2) { animation-delay: 0.2s; }
.history-section:nth-child(3) { animation-delay: 0.3s; }
.history-section:nth-child(4) { animation-delay: 0.4s; }
.history-section:nth-child(5) { animation-delay: 0.5s; }
.history-section:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-widget {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.6s ease forwards;
}

.sidebar-widget:nth-child(1) { animation-delay: 0.2s; }
.sidebar-widget:nth-child(2) { animation-delay: 0.4s; }
.sidebar-widget:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .breadcrumb-section,
    .page-stats {
        display: none;
    }
    
    .page-header {
        background: none !important;
        color: var(--about-text) !important;
        padding: 1rem 0;
    }
    
    .history-content {
        padding: 0;
    }
    
    .history-article {
        box-shadow: none;
        border: 1px solid #ddd;
        padding: 1rem;
    }
    
    .highlight-box,
    .achievement-box {
        background: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ========================================
   ORGANIZATIONAL STRUCTURE STYLES
   ======================================== */

/* Structure Period Tabs */
#structureTabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

#structureTabs .nav-item {
    margin: 0;
}

#structureTabs .nav-link {
    background: var(--about-card-bg);
    border: 2px solid var(--about-accent);
    color: var(--about-primary) !important;
    border-radius: 12px;
    padding: 1rem 2rem;
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(62, 180, 137, 0.15);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    white-space: nowrap;
}

#structureTabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--about-gradient);
    transition: left 0.3s ease;
    z-index: -1;
}

#structureTabs .nav-link:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(62, 180, 137, 0.25);
    border-color: var(--about-primary);
    color: white !important;
}

#structureTabs .nav-link:hover::before {
    left: 0;
}

#structureTabs .nav-link.active {
    background: var(--about-gradient);
    border-color: var(--about-primary);
    color: white !important;
    transform: none;
    box-shadow: 0 6px 20px rgba(27, 78, 59, 0.3);
    font-weight: 700;
}

#structureTabs .nav-link.active::before {
    left: 0;
}

/* Focus state for accessibility */
#structureTabs .nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(62, 180, 137, 0.3);
    border-color: var(--about-accent);
}

#structureTabs .nav-link:focus:not(.active) {
    color: var(--about-primary);
    background: var(--about-card-bg);
}

/* Disabled state */
#structureTabs .nav-link:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Structure Content */
.structure-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--about-primary);
    margin-bottom: 0.5rem;
}

.structure-period {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.structure-description {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Structure Image */
.structure-image-container {
    background: var(--about-card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--about-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.structure-image-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--about-light), transparent);
    animation: rotate 10s linear infinite;
    opacity: 0.1;
    z-index: 0;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.structure-image-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
}

.structure-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.structure-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Structure Image Actions */
.structure-image-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.structure-image-actions .btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.structure-image-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* No Image Placeholder */
.no-image-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--about-bg);
    border: 2px dashed var(--about-border);
    border-radius: 15px;
    color: var(--about-text-muted);
}

.no-image-placeholder i {
    margin-bottom: 1rem;
    opacity: 0.6;
}

/* No Content Placeholder */
.no-content-placeholder {
    padding: 4rem 2rem;
    background: var(--about-card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--about-shadow);
}

.no-content-placeholder .btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-content-placeholder .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.modal-dialog.modal-xl {
    max-width: 90vw;
}

.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: var(--about-gradient);
    color: white;
    border: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
}

.modal-body.p-0 img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-footer {
    border: none;
    padding: 1.5rem;
    background: var(--about-bg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .structure-title {
        font-size: 1.5rem;
    }
    
    .structure-period {
        font-size: 1rem;
    }
    
    .structure-image-container {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .structure-image-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .structure-image-actions .btn {
        width: 100%;
        max-width: 200px;
    }
    
    #structureTabs .nav-link {
        font-size: 0.9rem;
        padding: 0.85rem 1.5rem;
        margin: 0;
        border-width: 2px;
        min-width: 100px;
        min-height: 44px;
        border-radius: 10px;
    }
    
    #structureTabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    #structureTabs .nav-item {
        margin-bottom: 0;
    }
    
    .modal-dialog.modal-xl {
        max-width: 95vw;
        margin: 1rem;
    }
    
    .no-content-placeholder {
        padding: 2rem 1rem;
        margin: 0 1rem;
    }
}

@media (max-width: 576px) {
    .structure-title {
        font-size: 1.3rem;
    }
    
    #structureTabs {
        flex-direction: column;
        align-items: center;
    }
    
    #structureTabs .nav-link {
        width: 80%;
        text-align: center;
        margin: 0.25rem 0;
    }
}

/* Animation for structure content */
.tab-pane {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.tab-pane.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.structure-loading {
    text-align: center;
    padding: 4rem 2rem;
}

.structure-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    color: var(--about-primary);
}

/* Accessibility Improvements */
.structure-image {
    outline: none;
}

.structure-image:focus {
    box-shadow: 0 0 0 3px rgba(59, 180, 137, 0.3);
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(59, 180, 137, 0.3);
}

/* ========================================
   REGULATIONS PAGE SPECIFIC STYLES
   ======================================== */

/* Regulations Content */
.regulations-content {
    padding: 3rem 0;
    background: var(--about-bg);
}

.regulations-article {
    background: var(--about-card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px var(--about-shadow);
    border: 1px solid var(--about-border);
}

.regulation-section {
    margin-bottom: 3rem;
    position: relative;
}

.regulation-section:last-child {
    margin-bottom: 0;
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--about-border);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--about-accent);
    border-radius: 2px;
}

.section-header.general::after {
    background: var(--about-accent);
}

.section-header.borrowing::after {
    background: #3498db;
}

.section-header.responsibility::after {
    background: #f39c12;
}

.section-header.sanctions::after {
    background: #e74c3c;
}

.section-header.special::after {
    background: #9b59b6;
}

.section-header.schedule::after {
    background: #1abc9c;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--about-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h2 i {
    font-size: 1.5rem;
    color: var(--about-accent);
}

/* Subsection Styles */
.subsection {
    margin-bottom: 2rem;
}

.subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--about-primary);
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--about-bg) 0%, rgba(62, 180, 137, 0.1) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--about-accent);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(62, 180, 137, 0.1);
}

.subsection-title i {
    font-size: 1.1rem;
    color: var(--about-accent);
    background: var(--about-accent);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rules List */
.rules-list {
    margin: 1.5rem 0;
}

.rule-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid var(--about-accent);
    background: var(--about-bg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(62, 180, 137, 0.1), transparent);
    transition: left 0.5s ease;
}

.rule-item:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(62, 180, 137, 0.15);
    background: white;
}

.rule-item:hover::before {
    left: 100%;
}

.rule-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--about-accent) 0%, var(--about-secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 3px 10px rgba(62, 180, 137, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.rule-item:hover .rule-number {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(62, 180, 137, 0.4);
}

/* Section-specific styling */
.section-header.borrowing + .subsection .rule-item {
    border-left-color: #3498db;
}

.section-header.borrowing + .subsection .rule-number {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.section-header.responsibility + .rules-list .rule-item {
    border-left-color: #f39c12;
}

.section-header.responsibility + .rules-list .rule-number {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.3);
}

.section-header.sanctions + .rules-list .rule-item {
    border-left-color: #e74c3c;
}

.section-header.sanctions + .rules-list .rule-number {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.section-header.special + .rules-list .rule-item {
    border-left-color: #9b59b6;
}

.section-header.special + .rules-list .rule-number {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    box-shadow: 0 3px 10px rgba(155, 89, 182, 0.3);
}

.rule-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--about-text);
}

/* Highlight Boxes */
.highlight-box {
    background: var(--about-bg);
    border: 1px solid var(--about-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.highlight-box.info {
    background: #e8f4fd;
    border-color: #17a2b8;
    color: #0c5460;
}

.highlight-box.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.highlight-box.danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.highlight-box i {
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--about-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--about-shadow);
}

.schedule-table thead th {
    background: var(--about-primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.schedule-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--about-border);
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.schedule-table tbody tr:nth-child(even) {
    background: var(--about-bg);
}

/* Sidebar Styles */
.sidebar-widget {
    background: var(--about-card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--about-shadow);
    border: 1px solid var(--about-border);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--about-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title i {
    color: var(--about-accent);
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--about-text);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.nav-link-item:hover {
    background: var(--about-bg);
    color: var(--about-primary);
    transform: translateX(5px);
}

.nav-link-item i {
    color: var(--about-accent);
    font-size: 0.9rem;
}

/* Important Notes */
.note-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--about-bg);
}

.note-item i {
    color: var(--about-accent);
    font-size: 1rem;
    margin-top: 0.1rem;
}

.note-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Contact Info */
.contact-info h6 {
    color: var(--about-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--about-accent);
    width: 16px;
}
