/* Custom CSS variables for theme consistency */
:root {
    --sector-primary-color: #054062;
    --sector-secondary-color: #1d6c9a;
    --sector-accent-color: #e74c3c;
    --sector-success-color: #27ae60;
    --sector-info-color: #3498db;
    --sector-warning-color: #f39c12;
    --sector-light-bg: #f8f9fa;
    --sector-dark-text: #2c3e50;
    --sector-border-color: #dee2e6;

    --bs-primary: #054062;
    --bs-secondary: #64748b;
    --bs-success: #10b981;
    --bs-info: #06b6d4;
    --bs-warning: #f59e0b;
    --bs-danger: #ef4444;
    --bs-light: #f8fafc;
    --bs-dark: #1e293b;
}

/* Custom styles */
.hero-carousel {
    height: 100vh;
}

.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.user-group-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-group-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.icon-circle {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.news-image {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.stats-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.service-card {
    transition: all 0.3s ease;
}

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

.announcement-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.search-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.bg-usergroup{
    background-color: #054062;
    color: white;
}

.alert-usergroup{
    background-color: #f2ece3;
    color: #9a6533;
}

.text-usergroup{
    color: #9a6533;
}

.bg-usergroup:hover{
    background-color: #054062;
    color: white;
}

.btn-outline-usergroup {
    border: #054062 solid 1px;
    background-color: white;
    color: #054062;
}

.btn-outline-usergroup:hover {
    border: #b58a68 solid 1px;
    background-color: white;
    color: #b58a68;
}

.bg-news{
    background-color: ;
}

.organization-value-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.organization-value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.border-khk {
    background-color: white;
    border-color: #9a6533;
    color: #9a6533;
}

.border-khk:hover{
    background-color: #9a6533;
    color: white;
}

button:hover {
    filter: brightness(85%)
}


///Sector Detail Style

       /* Navigation Breadcrumb */
   .breadcrumb-nav {
       background-color: var(--light-bg);
       padding: 1rem 0;
       border-bottom: 1px solid var(--border-color);
   }

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #ffffff 0%, var(--light-bg) 100%);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto;
}

/* Section Styles */
.info-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--sector-border-color);
}
.section-header-row{
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
	background: linear-gradient(135deg, #054062 0%, #1d6c9a 100%);
}

.section-header {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    gap: 1rem;
}

.section-content {
    padding: 2rem;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--sector-primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--sector-primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--sector-primary-color);
}

.timeline-date {
    font-weight: 600;
    color: var(--sector-primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--sector-dark-text);
}

.timeline-description {
    color: #666;
    margin: 0;
}

/* Alert Boxes */
.info-alert {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.warning-alert {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
    border: 1px solid #ff9800;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.success-alert {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

/* Document List */
.document-list {
    list-style: none;
    padding: 0;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--sector-border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    background: var(--sector-light-bg);
    transition: all 0.3s ease;
}

.document-item:hover {
    background: #e3f2fd;
    border-color: var(--sector-primary-color);
}

.document-icon {
    background: var(--sector-primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* FAQ Styles */
.faq-item {
    border: 1px solid var(--sector-border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-header {
    background: var(--sector-light-bg);
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: between;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-header:hover {
    background: #e3f2fd;
}

.faq-header.active {
    background: var(--sector-primary-color);
    color: white;
}

.faq-content {
    padding: 1.5rem;
    display: none;
    border-top: 1px solid var(--sector-border-color);
}

.faq-content.show {
    display: block;
}

/* Legislation List */
.legislation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.legislation-card {
    background: var(--sector-light-bg);
    border: 1px solid var(--sector-border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.legislation-card:hover {
    background: #e3f2fd;
    border-color: var(--sector-primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.legislation-title {
    font-weight: 600;
    color: var(--sector-primary-color);
    margin-bottom: 0.5rem;
}

.legislation-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Study Questions */
.question-card {
    background: white;
    border: 1px solid var(--sector-border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.question-number {
    background: var(--sector-primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.answer-options {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.answer-option {
    padding: 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option:hover {
    color: var(--sector-primary-color);
    font-weight: 500;
}

.show-answer-btn {
    background: var(--sector-info-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.show-answer-btn:hover {
    background: #2980b9;
}

.correct-answer {
    background: var(--sector-success-color);
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    display: none;
}

.correct-answer.show {
    display: block;
}

/* Key Dates */
.key-dates {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
    border: 2px solid var(--sector-warning-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(243, 156, 18, 0.3);
}

.date-item:last-child {
    border-bottom: none;
}

.date-label {
    font-weight: 600;
    color: var(--sector-dark-text);
}

.date-value {
    background: var(--sector-warning-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .section-content {
        padding: 1rem;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }
}

/* Sticky Navigation */
.section-nav {
    position: sticky;
    top: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.section-nav h5 {
    color: var(--sector-primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-nav li {
    margin-bottom: 0.5rem;
}

.section-nav a {
    color: var(--sector-dark-text);
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.section-nav a:hover,
.section-nav a.active {
    background: var(--sector-primary-color);
    color: white;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--sector-primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top:hover {
    background: var(--sector-secondary-color);
    transform: translateY(-2px);
}

.scroll-top.show {
    display: flex;
}

/*Chairman Page */
  .chairman-timeline {
      position: relative;
      padding-left: 30px;
  }

.chairman-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.chairman-timeline-item {
    position: relative;
}

.chairman-timeline-marker {
    position: absolute;
    left: -23px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chairman-timeline-content {
    padding-left: 20px;
    padding-bottom: 20px;
}

.chairman-timeline-content h5 {
    margin-bottom: 5px;
}


.btn-outline-instagram{
    --bs-btn-color: #E1306C;
    --bs-btn-border-color: #E1306C;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #E1306C;
    --bs-btn-hover-border-color: #E1306C;
    --bs-btn-focus-shadow-rgb: 5,64,98;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #E1306C;
    --bs-btn-active-border-color: #E1306C;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #E1306C;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #E1306C;
    --bs-gradient: none;
}

.btn-outline-instagram:hover{
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}