:root{
    --color-primary-bg: #00A63E;
    --color-primary-light: #2DAB5B;
    --color-primary-dark: #008532;
    --color-primary-text: #ffffff;
    --color-secondary-bg: #DC2626;
    --color-secondary-light: #FEF2F2;
    --color-secondary-dark: #ED3131;
    --color-secondary-text: #ffffff;
    --color-normal-bg: #ffffff;
    --color-normal-light: #f0f0f0;
    --color-normal-dark: #e0e0e0;
    --color-normal-text: #000000;
    --color-dark-bg: #000000;
    --color-dark-light: #202020;
    --color-dark-dark: #404040;
    --color-dark-text: #ffffff;
    --color-success-bg: #28a745;
    --color-success-text: #ffffff;
    --color-danger-bg: #dc3545;
    --color-danger-text: #dc3545;
    --color-warning-bg: #FF6600;
    --color-warning-text: #FF6600;
    --color-info-bg: #17a2b8;
    --color-info-text: #ffffff;
    --color-link-normal: #1568b2;
    --color-link-dark: #1b81dd;
    --color-border-normal: #d0d0d0;
    --color-border-dark: #909090;
    --background-primary-image: url(/dist/img/bg.png);
    --background-primary-repeat: repeat;
    --background-primary-position: center center;
    --background-primary-color: #ffffff;
    --background-secondary-image: url(/dist/img/bg.png);
    --background-secondary-repeat: repeat;
    --background-secondary-position: center center;
    --background-secondary-color: #ffffff;
    --container-small: 600px;
    --container-medium: 900px;
    --container-large: 1200px;
    --spacing-small: 8px;
    --spacing-medium: 16px;
    --spacing-large: 24px;
    --radius-small: 4px;
    --radius-medium: 8px;
    --radius-large: 16px;
    --shadow-small: 0px 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0px 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-large: 0px 8px 16px rgba(0, 0, 0, 0.1);
    --text-small: 0.75rem;
    --text-medium: 0.9rem;
    --font-heading: "Noto Sans Bengali", sans-serif;
    --font-primary: "Noto Sans Bengali", sans-serif;
    --font-secondary: "Noto Sans Bengali", sans-serif;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    text-decoration: none;
    list-style: none;
    border: none;
    transition: background-color 300ms linear, color 300ms linear, border-color 300ms linear, box-shadow 300ms linear;
}



html {
    -webkit-transition: -webkit-filter 300ms linear;
}

body {
    font-family: var(--font-primary);
    overflow-x: hidden;
}

.header{
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Topbar Styles */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-primary-dark);
    font-size: 14px;
    padding: 12px 16px;
    width: 100%;
    min-height: 50px;
}

.topbar-left {
    color: var(--color-primary-text);
    flex: 1;
}

.topbar-right {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.lang-link {
    color: var(--color-primary-text);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 3px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-link:hover {
    background-color: #e9ecef;
    color: var(--color-primary-dark);
}

.lang-link.active {
    background-color: #e9ecef;
    color: var(--color-primary-dark);
}

/* Header Banner Styles */
.header-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    text-align: center;
}

.header-banner img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

/* Responsive Design for All Devices */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .header {
        padding: 0 16px;
    }
    
    .topbar {
        padding: 10px 12px;
        font-size: 13px;
    }

    .main-content{
        padding: 0 16px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .header {
        padding: 0 16px;
    }
    
    .topbar {
        justify-content: center;
        padding: 8px;
        min-height: 45px;
        font-size: 12px;
    }
    .topbar-left {
        display: none;
    }
    
    .topbar-right {
        justify-content: center;
        gap: 12px;
    }
    
    .lang-link {
        padding: 5px 10px;
    }

    .main-content{
        padding: 0 16px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .header {
        padding: 0 16px;
    }
    
    .topbar {
        padding: 6px;
        min-height: 40px;
        font-size: 11px;
    }
    
    .topbar-right {
        gap: 8px;
    }
    
    .lang-link {
        padding: 4px 8px;
        font-size: 11px;
    }

    .main-content{
        padding: 0 16px;
    }
}

/* Extra Small Devices */
@media (max-width: 320px) {
    .header {
        padding: 0 16px;
    }
    
    .topbar {
        padding: 4px;
        min-height: 35px;
        font-size: 10px;
    }
    
    .topbar-right {
        gap: 6px;
    }
    
    .lang-link {
        padding: 3px 6px;
        font-size: 10px;
    }

    .main-content{
        padding: 0 16px;
    }
}

/* Desktop styles */
@media (min-width: 960px) {
    body {
        padding: 0 28px;
        /* background-color: #F3F3F3; */
        background: url(../img/bg_main_july.gif) repeat-y scroll center top rgba(0, 0, 0, 0);
    }
}

/* Horizontal Menu Component */
.menu-container {
    width: 928px;
    margin: 0 auto;
    background-color: var(--color-primary-dark);
    border-top: 2px solid var(--color-primary-light);
    position: relative;
}

.menu-wrapper {
    position: relative;
    width: 100%;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: 100%;
}

.menu-item {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.3s ease;
}

.menu-item:nth-child(6n) {
    border-right: none;
}

.menu-item.hidden-row {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 15px;
    color: var(--color-primary-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.menu-link i {
    font-size: 10px;
    color: var(--color-primary-text);
}

.menu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-primary-text);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: translateY(-1px);
}

.menu-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Menu Submenu Styles */
.has-submenu {
    position: relative;
}

.submenu-arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.has-submenu:hover .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 200px;
    overflow: visible;
}

/* Show only direct child submenu on hover, not nested ones */
.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Specific hover behavior for level-2 submenus */
.has-submenu:hover + .level-2,
.level-2:hover {
    opacity: 1!important;
    visibility: visible!important;
    transform: translateY(0)!important;
}

.submenu-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.submenu-link {
    display: block;
    padding: 12px 16px;
    color: var(--color-normal-text);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    position: relative;
}

.submenu-link:last-child {
    border-bottom: none;
}

.submenu-link:hover {
    background: var(--color-primary-bg);
    color: var(--color-primary-text);
    padding-left: 20px;
}

/* Level 2 and deeper submenus */
.submenu .has-submenu .submenu-arrow {
    float: right;
    margin-top: 2px;
    transform: rotate(-90deg);
}

.submenu .level-2 {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 1px;
    z-index: 1001;
}

.submenu .has-submenu:hover .submenu-arrow {
    transform: rotate(0deg);
}

/* Multi-column support */
.submenu.multi-column {
    display: flex;
    min-width: 400px;
    max-width: 800px;
}

.submenu.multi-column > .submenu-items {
    display: flex;
    flex-direction: row;
    gap: 0;
    width: 100%;
}

.submenu-column {
    flex: 1;
    min-width: 200px;
}

.submenu-column:not(:last-child) {
    border-right: 1px solid #e0e0e0;
}

.submenu-column > .submenu-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-right: 0;
}

/* Responsive positioning for submenus */
.submenu.position-right {
    left: auto;
    right: 0;
}

/* Level-2 submenu responsive positioning */
.submenu .level-2.position-left {
    left: -100%;
    margin-left: -1px;
}

.submenu .has-submenu {
    position: relative;
}

.submenu.position-center {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
}

.submenu.position-center.show {
    transform: translateX(-50%) translateY(0);
}

/* Show state for JavaScript controlled submenus */
.submenu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* ============================================
   MOBILE SIDEBAR MENU STYLES
   ============================================ */

/* Mobile Menu Toggle Button (Hamburger) */
.mobile-menu-toggle {
    position: fixed;
    top: 0px;
    right: 15px;
    z-index: 1100;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    color: var(--color-primary-text);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: transparent;
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle i {
    font-size: 20px;
}

/* Mobile Sidebar Container */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1200;
    overflow-y: auto;
    overflow-x: hidden;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.mobile-sidebar.active {
    left: 0;
}

/* Mobile Sidebar Header */
.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--color-primary-dark);
    color: var(--color-primary-text);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-sidebar-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.mobile-sidebar-close {
    background: transparent;
    border: none;
    color: var(--color-primary-text);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.mobile-sidebar-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-sidebar-close:active {
    transform: scale(0.9);
}

/* Mobile Sidebar Navigation */
.mobile-sidebar-nav {
    padding: 10px 0;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: var(--color-normal-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-menu-link:hover {
    background-color: #f8f8f8;
    color: var(--color-primary-bg);
    padding-left: 25px;
}

.mobile-menu-link i.fa-home {
    margin-right: 10px;
    font-size: 18px;
}

.mobile-menu-link .toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-menu-item.has-children.active > .mobile-menu-link .toggle-icon {
    transform: rotate(180deg);
}

/* Mobile Submenus */
.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-item.has-children.active > .mobile-submenu {
    max-height: 1000px;
}

.mobile-submenu li {
    border-bottom: 1px solid #e8e8e8;
}

.mobile-submenu li:last-child {
    border-bottom: none;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 14px 35px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-submenu-link:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary-text);
    padding-left: 40px;
}

.mobile-submenu-link::before {
    content: '›';
    position: absolute;
    left: 20px;
    font-size: 18px;
    font-weight: bold;
    opacity: 0.5;
}

/* Level 3 Submenus */
.mobile-submenu.level-3 {
    background-color: #f0f0f0;
}

.mobile-submenu.level-3 .mobile-submenu-link {
    padding-left: 50px;
    font-size: 13px;
}

.mobile-submenu.level-3 .mobile-submenu-link:hover {
    padding-left: 55px;
}

.mobile-submenu.level-3 .mobile-submenu-link::before {
    left: 35px;
}

.mobile-submenu li.has-children.active > .mobile-submenu {
    max-height: 800px;
}

.mobile-submenu li.has-children > .mobile-submenu-link .toggle-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.mobile-submenu li.has-children.active > .mobile-submenu-link .toggle-icon {
    transform: rotate(180deg);
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: none;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Scrollbar Styling for Mobile Sidebar */
.mobile-sidebar::-webkit-scrollbar {
    width: 6px;
}

.mobile-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-sidebar::-webkit-scrollbar-thumb {
    background: var(--color-primary-dark);
    border-radius: 3px;
}

.mobile-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* ============================================
   RESPONSIVE BEHAVIOR
   ============================================ */

/* Tablet View (768px and below) */
@media screen and (max-width: 768px) {
    /* Hide Desktop Menu */
    .menu-container {
        display: none !important;
    }
    
    /* Show Mobile Menu Toggle and Sidebar */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-sidebar {
        display: block;
    }
    
    .mobile-sidebar-overlay {
        display: block;
    }
}

/* Mobile View Optimization (480px and below) */
@media screen and (max-width: 480px) {
    .mobile-sidebar {
        width: 280px;
        left: -280px;
    }
    
    .mobile-menu-toggle {
        width: 45px;
        height: 45px;
    }
    
    .mobile-menu-toggle i {
        font-size: 18px;
    }
}

/* Ensure Desktop Menu is Always Visible on Desktop */
@media screen and (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-sidebar {
        display: none !important;
    }
    
    .mobile-sidebar-overlay {
        display: none !important;
    }
    
    .menu-container {
        display: block;
    }
}

/* ============================================
   MAIN CONTENT LAYOUT
   ============================================ */

.main-content {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 10px;
}

.left-main-content {
    width: 650px;
}

/* Notice Section Styles */
.notice-section {
    width: 100%;
    min-height: 400px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-heading {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-normal-text);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-primary-bg);
}

/* Table Responsive Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

/* Notice Table Styles */
.notice-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    font-size: 14px;
}

.notice-table thead {
    background-color: var(--color-primary-dark);
    color: var(--color-primary-text);
}

.notice-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.notice-table th:first-child {
    width: 60px;
    text-align: center;
}

.notice-table th:nth-child(3) {
    width: 100px;
    text-align: center;
}

.notice-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.2s ease;
}

.notice-table tbody tr:hover {
    background-color: #f8f8f8;
}

.notice-table tbody tr:last-child {
    border-bottom: none;
}

.notice-table td {
    padding: 14px 10px;
    vertical-align: middle;
}

.notice-table td:first-child {
    text-align: center;
    font-weight: 600;
    color: #666;
}

.notice-table td:nth-child(3) {
    text-align: center;
}

.notice-title {
    color: var(--color-normal-text);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: color 0.2s ease;
}

.notice-title:hover {
    color: var(--color-primary-bg);
    text-decoration: underline;
}

.notice-date {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notice-date::before {
    content: '\f073';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 11px;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-important {
    background-color: #dc2626;
    color: #fff;
}

.badge-general {
    background-color: #6b7280;
    color: #fff;
}

.badge-event {
    background-color: #2563eb;
    color: #fff;
}

.badge-exam {
    background-color: #f59e0b;
    color: #fff;
}

/* Show More Button */
.show-more-container {
    text-align: center;
    margin-top: 15px;
}

.btn-show-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background-color: var(--color-primary-bg);
    color: var(--color-primary-text);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-show-more:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.btn-show-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-show-more:hover i {
    transform: translateX(4px);
}

.right-main-content {
    flex: 1;
    min-height: 400px;
    background-color: #fff;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Image Card Styles */
.image-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.image-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-title {
    padding: 12px 16px;
    background-color: var(--color-primary-dark);
    color: var(--color-primary-text);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-image {
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover .card-image img {
    transform: scale(1.05);
}

.card-heading {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-normal-text);
    line-height: 1.4;
    border-top: 1px solid #f0f0f0;
}

/* Responsive Main Content */
@media screen and (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 20px;
        padding: 0px 16px;
    }
    
    .left-main-content {
        width: 100%;
        padding: 0px;
    }
    
    .right-main-content {
        width: 100%;
        gap: 20px;
    }
    
    /* Notice table responsive */
    .section-heading {
        font-size: 18px;
    }
    
    .notice-table {
        font-size: 13px;
    }
    
    .notice-table th,
    .notice-table td {
        padding: 10px 8px;
    }
    
    .notice-table th:first-child,
    .notice-table td:first-child {
        width: 40px;
        font-size: 12px;
    }
    
    /* Full width cards on mobile */
    .image-card {
        width: 100%;
        margin: 0;
    }
    
    .card-title {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .card-heading {
        padding: 16px 18px;
        font-size: 16px;
    }

    /* Responsive Card Grid - Mobile (1 card per row) */
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Card Section Styles */
.card-section {
    margin-top: 40px;
    margin-bottom: 30px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0;
}

.info-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

/* Hide extra cards by default */
.info-card.extra-card {
    display: none;
}

/* Show extra cards when expanded */
.card-grid.expanded .info-card.extra-card {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-bg) 0%, var(--color-primary-dark) 100%);
    border-radius: 12px;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 166, 62, 0.2);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-success-text);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-link {
    color: #4b5563;
    text-decoration: none;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #f9fafb;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
}

.card-link::before {
    content: "→";
    margin-right: 10px;
    font-weight: bold;
    color: var(--color-primary-bg);
    transition: transform 0.3s ease;
}

.card-link:hover {
    background: #f0fdf4;
    border-left-color: var(--color-primary-bg);
    color: var(--color-primary-dark);
    padding-left: 20px;
    transform: translateX(4px);
}

.card-link:hover::before {
    transform: translateX(4px);
}

/* Service Cards Toggle Button */
.card-section .show-more-container {
    text-align: center;
    margin-top: 30px;
}

.card-section .btn-show-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background-color: var(--color-primary-bg);
    color: var(--color-primary-text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 166, 62, 0.2);
    border: none;
    cursor: pointer;
}

.card-section .btn-show-more:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 166, 62, 0.3);
}

.card-section .btn-show-more i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.card-section .btn-show-more:hover i {
    transform: scale(1.2);
}

/* Responsive Design for Cards */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-section {
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .card-header {
        padding: 16px 20px;
        gap: 12px;
    }

    .card-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-body {
        padding: 20px;
        gap: 10px;
    }

    .card-link {
        font-size: 14px;
        padding: 10px 14px;
    }
}

/* Medium Devices Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .card-grid {
        gap: 20px;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        font-size: 21px;
    }

    .card-title {
        font-size: 17px;
    }
}
/* ============================================
   FOOTER SECTION STYLES
   ============================================ */

.footer {
    width: 1018px;
    margin: 0 auto;
    background-color: #FFFFFF;
    background-image: url('../img/footer_top_bg.png');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 1018px auto;
    margin-top: 50px;
    padding: 120px 0 30px;
    border-top: 1px solid #FFFFFF;
}

.footer-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.footer-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.footer-link {
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-bg);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--color-primary-bg);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-updated {
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

.footer-right {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-credit {
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
}

.footer-credit .highlight {
    color: var(--color-primary-dark);
    font-weight: 600;
}

.footer-developer {
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

.developer-link {
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.developer-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Responsive Footer for Tablets */
@media (max-width: 768px) {
    .footer {
        padding: 100px 0 25px;
        margin-top: 40px;
        width: 100%;
        background-size: 100% auto;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 16px;
        gap: 25px;
    }

    .footer-left {
        align-items: center;
        width: 100%;
    }

    .footer-links {
        justify-content: center;
        gap: 16px;
    }

    .footer-link {
        font-size: 13px;
    }

    .footer-updated {
        font-size: 12px;
    }

    .footer-right {
        text-align: center;
        width: 100%;
    }

    .footer-credit {
        font-size: 13px;
    }
}


/* Responsive Footer for Mobile */
@media (max-width: 480px) {
    .footer {
        padding: 80px 0 20px;
        margin-top: 30px;
        background-size: 100% auto;
    }

    .footer-container {
        padding: 0 12px;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .footer-link {
        font-size: 13px;
        width: 100%;
        padding: 8px 12px;
        background-color: #f3f4f6;
        border-radius: 6px;
    }

    .footer-link::after {
        display: none;
    }

    .footer-link:hover {
        background-color: #e5e7eb;
    }

    .footer-updated {
        font-size: 12px;
    }

    .footer-credit {
        font-size: 12px;
    }
}