* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f6f8;
    color: #2c3e50;
    line-height: 1.6;
    padding-bottom: 60px; /* Space for fixed ad banner */
}

header {
    background: #006e7d 100%;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.site-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    order: 1;
}

.header-text {
    text-align: center;
    flex: 1;
    order: 2;
}

.header-download {
    order: 3;
    display: flex;
    align-items: center;
}

.download-dropdown {
    position: relative;
    display: inline-block;
}

.download-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.download-icon {
    font-size: 16px;
}

.download-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.download-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e1e4e8;
    min-width: 280px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 16px;
}

.download-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.download-section {
    margin-bottom: 16px;
}

.download-section:last-child {
    margin-bottom: 0;
}

.download-section h4 {
    color: #1e3c72;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #e1e4e8;
}

.download-link {
    display: block;
    padding: 8px 12px;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    border: 1px solid transparent;
}

.download-link:hover {
    background: #f8f9fa;
    color: #1e3c72;
    border-color: #e1e4e8;
    text-decoration: none;
    transform: translateX(4px);
}

.download-link:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        justify-content: center;
        gap: 15px;
    }
    
    .site-logo {
        height: 65px;
        order: 1;
        align-self: center;
    }
    
    .header-text {
        text-align: center;
        order: 2;
    }
    
    .header-download {
        order: 3;
        justify-content: center;
    }
    
    .download-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        min-width: 260px;
    }
    
    .download-menu.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .download-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .download-text {
        display: none;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #fff;
    margin-top: 8px;
    font-size: 14px;
}

nav {
    background: white;
    border-bottom: 1px solid #e1e4e8;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 16px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #586069;
    white-space: nowrap;
    text-decoration: none;
    display: block;
}

.nav-tab:hover {
    color: #1e3c72;
    background: #f8f9fa;
    text-decoration: none;
}

.nav-tab.active {
    color: #1e3c72;
    border-bottom-color: #1e3c72;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1e3c72;
    padding: 10px;
    margin-right: 10px;
}

.mobile-menu-toggle:hover {
    color: #2a5298;
}

/* Mobile menu styles */
.mobile-menu {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #004d5a !important;
    border-top: 1px solid #006e7d !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3) !important;
    z-index: 1000 !important;
    width: 100% !important;
    margin-top: 70px !important;
}

.mobile-menu.active {
    display: block !important;
    background: #004d5a !important;
}

.mobile-nav-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: column;
}

.mobile-nav-tab {
    display: block;
    padding: 15px 20px;
    color: white !important;
    text-decoration: none;
    border-bottom: 1px solid #006e7d;
    transition: background-color 0.3s ease;
}

.mobile-nav-tab:hover {
    background-color: #006e7d !important;
    color: white !important;
}

.mobile-nav-tab.active {
    background-color: #6BA39C !important;
    color: white !important;
}



.content-section {
    padding: 30px 0;
}

.institutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.institution-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.institution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-decoration: none;
    color: inherit;
}

.institution-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.institution-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 3px 10px rgba(30, 60, 114, 0.3);
}

.institution-info h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: center;
}

.institution-info p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    text-align: center;
}

.quick-links {
    display: none; /* Скриваме quick-links защото цялата картичка е кликабъл */
}

.quick-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    transition: all 0.2s;
    border: 1px solid #e9ecef;
}

.quick-link:hover {
    background: #e9ecef;
    color: #1e3c72;
    transform: translateX(4px);
    text-decoration: none;
}

.quick-link-icon {
    margin-right: 12px;
    color: #6c757d;
    font-size: 16px;
}

.main-link {
    display: none; /* Скриваме main-link защото цялата картичка е кликабъл */
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bank-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
    border: 1px solid #e9ecef;
}

.bank-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.bank-card.featured {
    background: linear-gradient(135deg, #006e7d 0%, #004d56 100%);
    color: white;
    border: 2px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.bank-card.featured .bank-name {
    color: white;
    font-weight: 700;
}

.bank-description {
    font-size: 14px;
    color: #6c757d;
    margin: 8px 0 15px 0;
    line-height: 1.4;
}

.bank-card.featured .bank-description {
    color: rgba(255, 255, 255, 0.9);
}

.bank-card.featured .bank-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bank-card.featured .bank-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Стил за featured картата да заема цялата ширина */
.bank-card.featured {
    grid-column: 1 / -1;
    max-width: none;
    display: flex;
    align-items: center;
    padding: 20px 30px;
    min-height: 80px;
}

.bank-card.featured .bank-logo {
    margin: 0 20px 0 0;
    flex-shrink: 0;
}

.bank-card.featured .bank-info {
    flex: 1;
    margin: 0;
}

.bank-card.featured .bank-name {
    font-size: 20px;
    margin: 0 0 5px 0;
}

.bank-card.featured .bank-description {
    font-size: 14px;
    margin: 0;
}

.bank-card.featured .bank-link {
    margin: 0;
    padding: 12px 20px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Стил за всички банкови бутони */
.bank-link {
    background: #006e7d;
    color: white;
    border: 1px solid #006e7d;
}

.bank-link:hover {
    background: #004d56;
    border-color: #004d56;
    color: white;
}

/* Стил за логото на ИС Бизнес статистика */
.main-institution-card[href*="isbs.nsi.bg"] .main-institution-logo {
    background: #104310;
    border-radius: 12px;
    padding: 8px;
    opacity: 0.8;
}
/* Стил за логото на ИС Бизнес цикли */
.main-institution-card[href*="portal-isbc.nsi.bg"] .main-institution-logo {
    background: #1f618d;
    border-radius: 12px;
    padding: 8px;
    opacity: 0.8;
}

.bank-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 24px;
    color: #495057;
}

.bank-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

.bank-link {
    display: inline-block;
    padding: 8px 16px;
    background: #006e7d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}

.bank-link:hover {
    background: #218838;
    text-decoration: none;
    color: white;
}

.useful-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.link-category {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.link-category h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.link-category h3 a {
    color: #006e7d;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.link-category h3 a:hover {
    color: #218838;
    text-decoration: none;
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.link-category {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.link-list a {
    padding: 8px 12px;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.link-list a:hover {
    background: #f8f9fa;
    color: #1e3c72;
    padding-left: 16px;
    text-decoration: none;
}

/* Special styling for "Вижте всички..." links - same as bank buttons */
.link-list a[href$=".html"] {
    background: #006e7d;
    color: white;
    border: 1px solid #006e7d;
    font-weight: 600;
    border-radius: 4px;
    padding: 8px 16px;
    margin-top: auto;
    text-align: center;
    font-size: 14px;
    transition: background 0.2s;
    display: inline-block;
    text-decoration: none;
}

.link-list a[href$=".html"]:hover {
    background: #218838;
    border-color: #218838;
    color: white;
    text-decoration: none;
    transform: none;
    box-shadow: none;
    padding-left: 16px;
}

/* Old section-title removed - using new centered version below */

/* Header with Search Layout */
.header-with-search {
    display: flex;
    justify-content: flex-end;
    margin: 20px 0;
}

/* Calendar Navigation Layout */
.calendar-header {
    display: flex;
    justify-content: flex-end;
    margin: 20px 0;
}

.header-with-search .search-box {
    margin: 0;
    position: relative;
    min-width: 300px;
    max-width: 400px;
}

.search-box {
    margin: 20px 0;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #1e3c72;
}

.search-box::before {
    content: "🔍";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.back-link {
    display: inline-block;
    padding: 8px 12px;
    background: transparent;
    color: #6c757d;
    text-decoration: none;
    border-radius: 4px;
    font-size: 24px;
    font-weight: bold;
    transition: color 0.2s;
    margin-right: 15px;
    vertical-align: middle;
}

.back-link:hover {
    background: transparent;
    text-decoration: none;
    color: #5a6268;
}

/* Контейнер за заглавие с back-link */
.header-with-back {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.header-with-back h1,
.header-with-back h2 {
    margin: 0;
    flex: 1;
}

/* Advertising Banner - Thin, non-intrusive */
.ad-banner {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: linear-gradient(135deg, #006e7d 0%, #004d5a 100%) !important;
    color: white;
    height: 60px;
    overflow: hidden;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999 !important;
}

.ad-banner.show {
    transform: translateY(0);
}

.ad-banner.hidden {
    transform: translateY(100%);
}

.ad-banner::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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.ad-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px 0 60px;
}

.ad-banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ad-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ad-banner-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.ad-banner-text {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.ad-banner-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-left: 50px; /* Space for slider controls */
}

.ad-banner-left:hover {
    opacity: 0.9;
}

.ad-banner-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.ad-banner-subtitle {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.ad-banner-features {
    display: none; /* Скриваме на тънката лента */
}

.ad-feature {
    display: none; /* Скриваме на тънката лента */
}

.ad-feature-icon {
    display: none; /* Скриваме на тънката лента */
}

.ad-banner-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ad-logo {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ad-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.ad-logo:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

.ad-cta-button {
    background: #ff6b35;
    color: white;
    padding: 6px 16px;
    border: none;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(255,107,53,0.3);
    white-space: nowrap;
}

.ad-cta-button:hover {
    background: #ff5722;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,53,0.4);
    text-decoration: none;
    color: white;
}

.ad-banner-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ad-banner-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Slider Controls */
.ad-slider-controls {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    display: flex;
    gap: 5px;
    align-items: center;
    z-index: 10;
}

.ad-slider-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ad-slider-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.ad-slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ad-slider-dots {
    display: flex;
    gap: 4px;
    margin-left: 5px;
}

.ad-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.2s;
}

.ad-slider-dot.active {
    background: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

/* Специални стилове за различните продукти */
.ad-banner-slide[data-slide="0"] .ad-logo {
    background: rgba(255,255,255,0.15);
}

.ad-banner-slide[data-slide="1"] .ad-logo {
    background: rgba(255,255,255,0.15);
}

.ad-banner-slide[data-slide="2"] .ad-logo {
    background: linear-gradient(135deg, #006e7d 0%, #004d56 100%);
    border: 2px solid rgba(255,255,255,0.4);
}

.ad-banner-slide[data-slide="3"] .ad-logo {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
    border: 2px solid rgba(255,255,255,0.4);
}

.ad-banner-slide[data-slide="4"] .ad-logo {
    background: linear-gradient(135deg, #17a2b8 0%, #6c757d 100%);
    border: 2px solid rgba(255,255,255,0.4);
}

.ad-banner-slide[data-slide="5"] .ad-logo {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    border: 2px solid rgba(255,255,255,0.4);
}

.ad-banner-slide[data-slide="6"] .ad-logo {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: 2px solid rgba(255,255,255,0.4);
}

/* Responsive design for ad banner */
@media (max-width: 768px) {
    .ad-banner {
        height: 70px;
    }
    
    .ad-banner-content {
        padding: 0 15px 0 50px;
    }
    
    .ad-banner-left {
        gap: 10px;
    }
    
    .ad-banner-title {
        font-size: 13px;
    }
    
    .ad-banner-subtitle {
        font-size: 11px;
    }
    
    .ad-logo {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .ad-logo img {
        width: 24px;
        height: 24px;
    }
    
    .ad-cta-button {
        padding: 5px 10px;
        font-size: 10px;
        white-space: nowrap;
    }
    
    .ad-slider-controls {
        left: 5px;
    }
    
    .ad-slider-btn {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .ad-slider-dot {
        width: 5px;
        height: 5px;
    }
    
    .ad-banner-right {
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .ad-banner {
        height: 80px;
    }
    
    .ad-banner-content {
        padding: 8px 10px;
        justify-content: center;
    }
    
    .ad-banner-left {
        display: flex;
        margin-left: 0;
        gap: 10px;
        flex: 1;
        justify-content: center;
        align-items: center;
    }
    
    .ad-logo {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .ad-logo img {
        width: 24px;
        height: 24px;
    }
    
    .ad-banner-text {
        flex: 1;
        min-width: 0;
    }
    
    .ad-banner-title {
        font-size: 12px;
        white-space: normal;
        text-overflow: clip;
        overflow: visible;
        margin-bottom: 2px;
    }
    
    .ad-banner-subtitle {
        font-size: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.3;
    }
    
    .ad-slider-controls {
        display: none; /* Hide slider controls on mobile */
    }
    
    .ad-banner-right {
        display: none; /* Hide button on mobile */
    }
    
    body {
        padding-bottom: 80px; /* Space for fixed ad banner on mobile */
    }
}

/* Hero section for homepage */
.hero-section {
    background: #006e7d 100%;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);margin: 0 -20px 40px -20px;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 6px 6px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.hero-stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Main institutions grid for homepage */
.main-institutions {
    margin: 40px 0;
}

.main-institutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.main-institution-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.main-institution-card * {
    text-decoration: none;
}

.main-institution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-decoration: none;
    color: inherit;
}

.main-institution-card:hover * {
    text-decoration: none;
}

.main-institution-logo {
   /* width: 60px; */
   height: 60px;
   margin: 0 auto 15px;
   /* border-radius: 6%; */
   display: flex;
   align-items: center;
   justify-content: center;
   /* font-size: 1.8rem; */
   /* background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); */
   color: white;
   box-shadow: 0 3px 10px rgba(30, 60, 114, 0.3);
}

.main-institution-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.main-institution-description {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.9rem;
}



/* Official logos */
.official-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: white;
    padding: 6px;
    display: block;
    margin: 0 auto;
}

/* Responsive design for hero section */
@media (max-width: 1200px) {
    .main-institutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    
    /* Мобилни стилове за календарни бутони */
    .nav-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .nav-btn:not(.today-btn) {
        min-width: 40px;
        text-align: center;
    }
    
    /* Скриване на текстовете в навигационните бутони на мобилно */
    .nav-btn:not(.today-btn) {
        font-size: 0;
        position: relative;
    }
    
    .nav-btn:not(.today-btn)::before {
        content: attr(data-arrow);
        font-size: 16px;
        font-weight: bold;
    }
    
    /* Мобилно позициониране на календарната навигация */
    .calendar-nav {
        flex-direction: row;
        gap: 8px;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .calendar-nav .current-month {
        order: 2;
        margin: 0;
        text-align: center;
        flex: 1;
        min-width: 60px;
        font-size: 16px;
        font-weight: bold;
    }
    
    .calendar-nav .nav-btn:not(.today-btn) {
        order: 0;
        margin: 0;
        min-width: 35px;
        flex-shrink: 0;
    }
    
    .calendar-nav .nav-btn[onclick="nextMonth()"] {
        order: 3;
    }
    
    .calendar-nav .today-btn {
        order: 4;
        margin: 0;
        min-width: 45px;
        flex-shrink: 0;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .main-institutions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-institution-card {
        padding: 20px;
    }
}

/* Deadline Summary Styles */
.deadline-summary {
    background: linear-gradient(135deg, #006e7d 0%, #004d56 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.deadline-summary-text {
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .deadline-summary {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .deadline-summary-text {
        font-size: 14px;
    }
}

/* Ministries List Styles */
.ministries-list {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
}

.ministry-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
}

.ministry-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
    text-decoration: none;
    color: inherit;
}

.ministry-row:hover * {
    text-decoration: none;
}

.ministry-herb {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
    padding: 4px;
}

.ministry-herb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.ministry-info {
    flex: 1;
    min-width: 0;
}

.ministry-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.ministry-subtitle {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ministry-arrow {
    font-size: 18px;
    color: #bdc3c7;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.ministry-row:hover .ministry-arrow {
    color: #667eea;
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .header-with-search {
        justify-content: stretch;
    }
    
    .header-with-search .search-box {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
    
    .ministry-row {
        padding: 12px 15px;
    }
    
    .ministry-herb {
        width: 35px;
        height: 35px;
        margin-right: 12px;
        padding: 3px;
    }
    
    .ministry-title {
        font-size: 15px;
    }
    
    .ministry-subtitle {
        font-size: 12px;
    }
    
    .ministry-arrow {
        font-size: 16px;
    }
    
    /* Осигуряване на правилно показване на всички секции на мобилно */
    .ministries-list {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .ministry-row {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}


@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-tabs {
        display: none;
    }
    
    .institutions-grid {
        grid-template-columns: 1fr;
    }
    
    .bank-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Мобилни стилове за featured картата */
    .bank-card.featured {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        min-height: auto;
    }
    
    .bank-card.featured .bank-logo {
        margin: 0 0 15px 0;
    }
    
    .bank-card.featured .bank-info {
        margin: 0 0 15px 0;
    }
    
    .bank-card.featured .bank-name {
        font-size: 18px;
    }
    
    .bank-card.featured .bank-description {
        font-size: 13px;
    }
    
    .bank-card.featured .bank-link {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* Мобилни стилове за обикновените банкови карти */
    .bank-card {
        padding: 20px 15px;
        text-align: center;
    }
    
    .bank-card .bank-logo {
        margin: 0 auto 15px auto;
    }
    
    .bank-card .bank-name {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .bank-card .bank-link {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .useful-links {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Разширяване на календара за мобилно */
    body:has(.calendar-container) .content-section {
        padding: 0 5px;
    }
    
    body:has(.calendar-container) .container {
        padding: 0 10px;
    }
    
    /* Календарен контейнер за мобилно */
    .calendar-container {
        margin: 0 -10px;
        padding: 0;
    }
    
    /* Календарна мрежа за мобилно */
    .calendar-grid {
        margin: 0 -5px;
        padding: 0 5px;
    }
    
    /* Upcoming deadlines за мобилно */
    .upcoming-deadlines {
        margin: 0 -10px;
        padding: 0 10px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    /* Old section-title responsive styling removed - using new centered version */
    
    .institution-card {
        padding: 20px;
    }
    
    .bank-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .bank-grid {
        grid-template-columns: 1fr;
    }
    
    .institution-card {
        padding: 15px;
    }
    
    .bank-card {
        padding: 12px;
    }
    
    .quick-link {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .bank-name {
        font-size: 13px;
    }
}

/* Grid System for Footer */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-4, .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .col-lg-4, .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* Footer Styles */
#footer {
    background: #6c757d;
    color: #fff;
    font-size: 14px;
    position: relative;
}

#footer .footer-top {
    background: #6c757d;
    padding: 25px 0 15px 0;
    position: relative;
}

#footer .footer-top .footer-contact h5 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    position: relative;
    padding-bottom: 5px;
    margin-bottom: 10px;
}


#footer .footer-top .footer-contact h6 {
    font-size: 14px;
    font-weight: 500;
    color: #e9ecef;
    margin-bottom: 8px;
}

#footer .footer-top .footer-contact h6 a {
    color: #e9ecef;
    text-decoration: none;
    display: inline-block;
    padding: 8px 12px;
    background: #495057;
    border-radius: 20px;
    transition: all 0.3s;
    font-size: 12px;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
}

#footer .footer-top .footer-contact h6 a:hover {
    color: #fff;
    background: #006e7d;
    text-decoration: none;
}

#footer .footer-top .footer-contact p {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 0;
    color: #e9ecef;
}

#footer .footer-top .footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

#footer .footer-top .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .footer-top .footer-links ul li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

#footer .footer-top .footer-links ul li i {
    font-size: 12px;
    line-height: 1;
    color: #e9ecef;
    margin-right: 8px;
}

#footer .footer-top .footer-links ul li a {
    color: #e9ecef;
    transition: 0.3s;
    display: inline-block;
    line-height: 1;
    text-decoration: none;
}

#footer .footer-top .footer-links ul li a:hover {
    color: #fff;
    text-decoration: none;
}

#footer .footer-top .footer-newsletter h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 12px;
    background: none;
    text-decoration: none;
}

#footer .footer-top .footer-newsletter p {
    color: #e9ecef;
    margin-bottom: 15px;
}

#footer .footer-top .social-links a {
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    background: #495057;
    color: #fff;
    line-height: 1;
    padding: 8px 12px;
    margin-right: 6px;
    border-radius: 20px;
    text-align: center;
    min-width: 120px;
    height: 32px;
    transition: 0.3s;
    text-decoration: none;
    justify-content: center;
}

#footer .footer-top .social-links a img {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border-radius: 50%;
}

#footer .footer-top .social-links a span {
    font-size: 12px;
    white-space: nowrap;
}

#footer .footer-top .social-links a:hover {
    background: #006e7d;
    color: #fff;
    text-decoration: none;
}

#footer .footer-top .footer-external-link {
    margin-top: 15px;
}

#footer .footer-top .footer-external-link .external-link {
    color: #e9ecef;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

#footer .footer-top .footer-external-link .external-link:hover {
    color: #fff;
    text-decoration: none;
}

#footer .footer-top .footer-legal-links {
    margin-top: 10px;
}

#footer .footer-top .footer-legal-links .legal-link {
    color: #e9ecef;
    text-decoration: none;
    font-size: 12px;
    display: inline-block;
    padding: 8px 12px;
    background: #495057;
    border-radius: 20px;
    transition: all 0.3s;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
}

#footer .footer-top .footer-legal-links .legal-link:hover {
    color: #fff;
    background: #006e7d;
    text-decoration: none;
}

#footer .footer-copyright {
    background: #495057;
    padding: 12px 0;
    text-align: center;
}

#footer .footer-copyright .copyright {
    color: #e9ecef;
    font-size: 14px;
}

#footer .footer-copyright .copyright strong {
    color: #fff;
}

/* Responsive Footer */
@media (max-width: 768px) {
    #footer .footer-top {
        padding: 40px 0 20px 0;
    }
    
    #footer .footer-top .footer-contact h5 {
        font-size: 20px;
    }
    
    #footer .footer-top .footer-links h4,
    #footer .footer-top .footer-newsletter h4 {
        font-size: 15px;
    }
    
    #footer .footer-top .social-links {
        text-align: center;
        margin-top: 20px;
    }
    
    #footer .footer-copyright {
        text-align: center;
    }
}

/* Terms and Conditions Page Styles */
.terms-container {
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.terms-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
}

.terms-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e3c72;
}

.last-updated {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-style: italic;
}

.terms-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.terms-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.terms-section h2 {
    color: #006e7d;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #006e7d;
}

.terms-section h3 {
    color: #495057;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 25px 0 15px 0;
}

.terms-section p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.terms-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.terms-section li {
    color: #333;
    line-height: 1.8;
    margin-bottom: 8px;
}

.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #006e7d;
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    color: #333;
}

.contact-info a {
    color: #006e7d;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    color: #004d5a;
    text-decoration: underline;
}

/* Responsive Design for Terms Page */
@media (max-width: 768px) {
    .terms-container {
        padding: 20px 0;
    }
    
    .terms-header {
        margin-bottom: 30px;
        padding: 30px 20px;
    }
    
    .terms-header h1 {
        font-size: 2rem;
    }
    
    .terms-content {
        padding: 20px;
        margin: 0 15px;
    }
    
    .terms-section h2 {
        font-size: 1.3rem;
    }
    
    .terms-section h3 {
        font-size: 1.1rem;
    }
}

/* More Button Styles */
.more-button-container {
    text-align: center;
    margin: 30px 0;
}

.more-button {
    display: inline-block;
    background: linear-gradient(135deg, #006e7d 0%, #004d5a 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 110, 125, 0.3);
    border: none;
    cursor: pointer;
}

.more-button:hover {
    background: linear-gradient(135deg, #004d5a 0%, #003a45 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 110, 125, 0.4);
}

.more-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 110, 125, 0.3);
}

/* Banking Cards Section */
.banking-cards-section {
    background: #f8f9fa;
    padding: 50px 0;
    margin: 30px 0;
}

/* Banking section title styling moved to main section-title class */

.banking-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.banking-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.banking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #006e7d;
    color: #333;
    text-decoration: none;
}

.banking-logo {
    margin-bottom: 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banking-logo-img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.banking-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.banking-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Responsive Design for Banking Cards */
@media (max-width: 768px) {
    .banking-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .banking-cards-section {
        padding: 30px 0;
    }
    
    /* Banking section title responsive styling handled by main section-title class */
}

/* Service blocks styling */
.service-blocks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.service-block {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    min-height: 60px;
}

.service-block:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.service-block .service-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
}

.service-block .service-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.service-block .service-content {
    flex: 1;
}

.service-block a {
    font-weight: 600;
    color: #006e7d;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    margin-bottom: 3px;
}

.service-block a:hover {
    color: #004d5a;
    text-decoration: underline;
}

.service-block p {
    color: #666;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.3;
}

/* Featured service blocks - subtle highlighting for sponsored/recommended services */
.service-block-featured {
    border-left: 3px solid #006e7d;
    background: linear-gradient(to right, rgba(0, 110, 125, 0.02), #fff);
}

.service-block-featured:hover {
    border-left-color: #004d5a;
    background: linear-gradient(to right, rgba(0, 110, 125, 0.05), #fff);
}

.service-block-featured .service-icon {
    background: #f8f9fa;
    border-color: #006e7d;
}

.service-block-featured .service-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Responsive service blocks */
@media (max-width: 768px) {
    .service-blocks-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .service-blocks-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (min-width: 1025px) {
    .service-blocks-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: #1e3c72;
    margin-bottom: 40px;
    font-weight: 600;
}

/* Main Institutions Section */
.main-institutions .section-title {
    margin-bottom: 30px;
}

/* Banking Cards Section */
.banking-cards-section .section-title {
    margin-bottom: 30px;
}

/* Main Useful Links Section */
.useful-links-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.useful-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.useful-link-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e0e0e0;
}

.useful-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.useful-link-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
}

.useful-link-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.useful-link-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 8px;
}

.useful-link-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .useful-links-section {
        padding: 30px 0;
    }
    
    .useful-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .useful-link-card {
        padding: 20px 15px;
    }
    
    .useful-link-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .useful-link-img {
        width: 32px;
        height: 32px;
    }
    
    .useful-link-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .useful-links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Legal Page Styles */
.legal-sections {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.legal-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e4e8;
}

.legal-section h2 {
    color: #006E7D;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #006E7D;
    font-weight: 600;
}

.legal-links {
    display: grid;
    gap: 0.5rem;
}

.legal-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.legal-link:hover {
    background: #e3f2fd;
    border-color: #006E7D;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 110, 125, 0.15);
}

.legal-icon {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
    filter: grayscale(100%) sepia(100%) hue-rotate(180deg) saturate(200%) brightness(0.8);
    opacity: 0.8;
    flex-shrink: 0;
}

.legal-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 500;
}

/* Responsive Legal Page */
@media (max-width: 768px) {
    .legal-sections {
        gap: 1rem;
        margin-top: 1rem;
    }

    .legal-section {
        padding: 1rem;
    }

    .legal-section h2 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .legal-links {
        gap: 0.4rem;
    }

    .legal-link {
        padding: 0.6rem;
        gap: 0.6rem;
    }

    .legal-icon {
        font-size: 1.1rem;
        width: 1.25rem;
    }

    .legal-text {
        font-size: 0.85rem;
        line-height: 1.2;
    }
}

/* Important Laws Icons Styling */
.useful-link-icon span {
    filter: grayscale(100%) sepia(100%) hue-rotate(180deg) saturate(200%) brightness(0.8);
    opacity: 0.8;
}

/* PWA Install Button Styles - 3D Effect */
.pwa-install-btn {
    background: linear-gradient(145deg, #9DD3CC, #7BB3AC) !important;
    color: white !important;
    border: none !important;
    border-top: 2px solid #A8D8D1 !important;
    border-left: 2px solid #A8D8D1 !important;
    border-right: 2px solid #6BA39C !important;
    border-bottom: 2px solid #6BA39C !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
}

.pwa-install-btn:hover {
    background: linear-gradient(145deg, #7BB3AC, #6BA39C) !important;
    transform: translateY(-1px) !important;
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
    border-top-color: #9DD3CC !important;
    border-left-color: #9DD3CC !important;
    border-right-color: #5B938C !important;
    border-bottom-color: #5B938C !important;
}

.pwa-install-btn:active {
    transform: translateY(1px) !important;
    background: linear-gradient(145deg, #6BA39C, #5B938C) !important;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1) !important;
    border-top-color: #5B938C !important;
    border-left-color: #5B938C !important;
    border-right-color: #6BA39C !important;
    border-bottom-color: #6BA39C !important;
}

.install-icon {
    font-size: 16px !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.install-text {
    font-size: 14px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

@media (max-width: 768px) {
    .pwa-install-btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    .install-text {
        font-size: 13px !important;
    }
}

