/* Modern Professional Publications CSS */

/* Color Palette */
:root {
    --primary: #27aae1; /* Blue */
    --secondary: #FE7501; /* Orange */
    --accent: #006d77; /* Teal */
    --success: #28a745; /* Green */
    --danger: #dc3545; /* Red */
    --text: #000000; /* Black */
    --background: #f8f9fa;
    --nav-bg: #ffffff;
    --border-radius: 8px;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --text: #333;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
h1, h2, h3 {
    font-weight: bold;
}

h2 {
    color: var(--primary);
    font-size: 2.0rem;
    margin-bottom: 0.5rem;
}

h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; 
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); 
    min-height: 100vh; 
    color: #334155; 
    line-height: 1.6;
}

.container { 
    max-width: 100%; 
    margin: 0; 
    padding: 24px; 
}

.header { 
    text-align: center; 
    margin-bottom: 48px; 
    color: white; 
}

.header h1 { 
    font-size: clamp(2rem, 4vw, 2.75rem); 
    margin-bottom: 12px; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); 
    font-weight: 700;
    letter-spacing: -0.025em;
}

.nav-tabs { 
    display: flex; 
    justify-content: center; 
    margin-bottom: 40px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 16px; 
    padding: 8px; 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-tab { 
    padding: 12px 24px; 
    margin: 0 4px; 
    background: transparent; 
    border: none; 
    color: white; 
    cursor: pointer; 
    border-radius: 12px; 
    font-weight: 600; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    font-size: 0.95rem;
}

.nav-tab:hover { 
    background: rgba(255,255,255,0.2); 
    transform: translateY(-1px); 
}

.nav-tab.active { 
    background: rgba(255,255,255,0.25); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); 
    transform: translateY(-1px);
}

.content-section { 
    display: none; 
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}

.content-section.active { 
    display: block; 
}

@keyframes fadeIn { 
    from { 
        opacity: 0; 
        transform: translateY(16px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

.sidebar { 
    border-left: 4px solid #27aae1;  
    padding: 24px; 
    background: rgba(255,255,255,0.8); 
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    height: fit-content;
    position: sticky;
    top: 24px;
}

.sidebar .nav-link { 
    color: #475569; 
    font-weight: 500; 
    padding: 12px 16px; 
    border-radius: 8px; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    font-size: 0.95rem;
    display: block;
    text-decoration: none;
    margin-bottom: 4px;
}

.sidebar .nav-link:hover { 
    background: rgba(39,170,225,0.08); 
    color: #CB5F01; 
    transform: translateX(4px);
}

.sidebar .nav-link.active { 
    background: #27aae1; 
    color: white; 
    box-shadow: 0 2px 8px rgba(39,170,225,0.3);
}

.frontend-view { 
    background: rgba(255,255,255,0.8); 
    border-radius: 16px; 
    padding: 32px; 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 4px solid #27aae1; 
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.search-filter { 
    display: flex; 
    gap: 16px; 
    margin-bottom: 32px; 
    flex-wrap: wrap; 
}

.search-input, .filter-select { 
    padding: 14px 16px; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    font-size: 0.95rem; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    background: white; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    font-family: inherit;
}

.search-input:focus, .filter-select:focus { 
    outline: none; 
    border-color: #27aae1; 
    box-shadow: 0 0 0 3px rgba(39,170,225,0.1), 0 1px 3px rgba(0,0,0,0.1); 
}

.search-input {
    flex: 1;
    min-width: 300px;
}

.filter-select {
    min-width: 200px;
}

.stats-cards { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px; 
    margin-bottom: 32px; 
}

.stat-card { 
    background: white; 
    padding: 24px; 
    border-radius: 12px; 
    text-align: center; 
    box-shadow: 0 2px 12px rgba(0,0,0,0.06); 
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.stat-number { 
    font-size: 2.25rem; 
    font-weight: 700; 
    color: #27aae1; 
    margin-bottom: 4px;
    letter-spacing: -0.025em;
}

.stat-label { 
    color: #64748b; 
    font-weight: 500; 
    font-size: 0.9rem;
}

.header-title { 
    font-size: clamp(1.75rem, 3vw, 2.25rem); 
    font-weight: 700; 
    color: #1e293b; 
    margin-bottom: 8px; 
    letter-spacing: -0.025em;
}



.description-content { 
    line-height: 1.6; 
}

.description-truncated { 
    max-height: 7.5em; 
    overflow: hidden; 
    position: relative; 
}

.description-truncated::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    right: 0; 
    width: 100%; 
    height: 1.5em; 
    background: linear-gradient(to right, transparent, white 50%); 
}

.description-full { 
    max-height: none; 
}

/* API and download section */
.api-section {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}
.api-endpoint {
    font-family: monospace;
    background-color: #e9ecef;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 0.9em;
    word-break: break-all;
}
.copy-btn {
    background-color: #006D77;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8em;
    margin-left: 10px;
}
.copy-btn:hover {
    background-color: #CB5F01;
}
.copy-btn.copied {
    background-color: #28a745;
}
.download-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}


/* Policy styles */
.policy-card { 
    background: white; 
    border-radius: 12px; 
    padding: 24px; 
    margin-bottom: 20px; 
    box-shadow: 0 2px 12px rgba(0,0,0,0.06); 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    border-left: 4px solid #27aae1; 
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}


.policy-card:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 32px rgba(0,0,0,0.12); 
}

.policy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(39,170,225,0.3), transparent);
}

.policy-title { 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: #1e293b; 
    margin-bottom: 12px; 
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.policy-meta { 
    font-size: 0.875rem; 
    color: #64748b; 
    margin-bottom: 10px; 
    font-weight: 500;
}

/* Read more section */
.read-more-btn { 
    color: #27aae1; 
    cursor: pointer; 
    font-weight: 600; 
    text-decoration: none; 
    font-size: 0.875rem; 
    margin-top: 8px; 
    display: inline-block; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.read-more-btn:hover { 
    color: #006D77; 
    text-decoration: underline;
}

.access-badge { 
    display: inline-flex;
    align-items: center;
    padding: 6px 12px; 
    border-radius: 6px; 
    font-size: 0.75rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.05em;
}

.public { 
    background: #dcfce7; 
    color: #166534; 
    border: 1px solid #bbf7d0;
}

.private { 
    background: #fef2f2; 
    color: #991b1b; 
    border: 1px solid #fecaca;
}

.btn-primary { 
    background: #006D77; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    padding: 10px 20px; 
    font-size: 0.875rem; 
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary:hover { 
    background: #CB5F01; 
    transform: translateY(-1px); 
    box-shadow: 0 4px 16px rgba(0,109,119,0.3);
    color: white;
    text-decoration: none;
}

  /* Header Section */
  .page-header {
    background: var(--primary);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: var(--secondary);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Footer section */
.footer {
    background-color: #006d77;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #27aae1;
    font-weight: bold;
}

.footer-section p,
.footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.footer-section a:hover {
    color: #FE7501;
}

.footer-bottom {
    text-align: center;
    margin-top: 90px;
    padding-top: 10px;
    border-top: 1px solid #004d57;
    color: #b0b0b0;
}
/* Pagination Styles */
.pagination-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin-top: 40px; 
    gap: 24px;
}

.pagination { 
    display: flex; 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    gap: 4px;
}

.pagination li { 
    margin: 0; 
}

.pagination a { 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #27aae1; 
    text-decoration: none; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    font-weight: 500;
    background: white;
}

.pagination a:hover { 
    background: #27aae1; 
    color: white; 
    border-color: #27aae1;
    transform: translateY(-1px);
}

.pagination .active a { 
    background: #27aae1; 
    color: white; 
    border-color: #27aae1;
    box-shadow: 0 2px 8px rgba(39,170,225,0.3);
}

.pagination .disabled a { 
    color: #cbd5e1; 
    border-color: #f1f5f9; 
    cursor: not-allowed; 
    background: #f8fafc;
}

.pagination .disabled a:hover { 
    background: #f8fafc; 
    color: #cbd5e1; 
    transform: none;
}

.pagination-info { 
    color: #64748b; 
    font-size: 0.875rem; 
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
}

.empty-state p {
    font-size: 0.95rem;
    color: #64748b;
}

/* Alert Styles */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid transparent;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

/*------/ Box /------*/
.box-shadow-full {
    padding: 32px;
    position: relative;
    background: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
    z-index: 2;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.box-shadow-full li {
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.6;
}

.box-shadow-full a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.box-shadow-full a:hover {
    color: #27aae1;
    text-decoration: underline;
}

/* Enhanced Typography */
.title-box-2 {
    margin-bottom: 20px;
}

.title-left {
    position: relative;
    padding-bottom: 8px;
}

.title-left::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #27aae1;
    border-radius: 2px;
}

/* Contact Information Styling */
.more-info .list-ico {
    list-style: none;
    padding: 0;
    margin: 0;
}

.more-info .list-ico li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 0;
}

.more-info .list-ico li span {
    margin-right: 12px;
    color: #27aae1;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid #27aae1;
    outline-offset: 2px;
}

.nav-link:focus,
.btn-primary:focus,
.pagination a:focus {
    outline: 2px solid #27aae1;
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Navigation Bar */
.navbar {
    background-color: var(--nav-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #27aae1;
}

.logo-icon {
    width: clamp(300px, 15vw, 200px); /* Responsive width */
    height: auto;
    flex-shrink: 1;
  }

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.threshold-dropdown {
    margin-left: auto;
}

.dropdown-content {
    display: none;
    position: absolute;
    overflow-y: auto;
    background-color: var(--nav-bg);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-radius: 4px;
    padding: 12px 16px;
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.dropdown-content a:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.scrollable-dropdown {
    max-height: 250px;
    overflow-y: auto;
  }

/* Responsive Design */
@media (max-width: 768px) {
    .search-filter { 
        flex-direction: column; 
    } 
    
    .search-input, .filter-select { 
        min-width: 100%; 
    } 
    
    .container { 
        padding: 16px; 
    }
    
    .frontend-view {
        padding: 20px;
    }
    
    .sidebar {
        margin-bottom: 24px;
        position: static;
    }
    
    .pagination-container { 
        flex-direction: column; 
        gap: 16px; 
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--nav-bg, #f8f9fa);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .dropdown {
        position: static;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #f1f1f1;
        padding-left: 1rem;
    }

    .dropdown-content.scrollable-dropdown {
        max-height: 200px;
    }

    .navbar {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        height: 30px;
    }

    .navbar {
        padding: 0.75rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
        margin-bottom: 12px;
    }
    
    .access-badge {
        align-self: flex-end;
    }
}

