/* Upseek Brand Guideline 2025 - Complete CSS Implementation */

/* Typography Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
/* Note: You'll need to include Satoshi font separately as it's not available on Google Fonts */

:root {
    /* Primary Colors */
    --primary-blue: #1472C2;
    --blue-light: #008AFD;
    --blue-dark: #042A44;
    --white: #FFFFFF;
    
    /* Secondary Colors */
    --yellow: #E0D35C;
    --green-light: #B6CC56;
    --teal: #02BFAE;
    --gray-lightest: #EDEDED;
    --gray-darkest: #1B2326;
    --gray-dark: #455259;
    --gray-medium: #9EAEB5;
    --blue-accent: #7890C0;
    
    /* Text Colors */
    --body-text: var(--gray-darkest);
    --light-text: var(--gray-dark);
    
    /* Gradients */
    --section-gradient: linear-gradient(135deg, var(--gray-lightest), var(--white));

    /* Theme Variables - Default Light Theme */
    --background-color: var(--white);
    --text-color: var(--body-text);
    --header-color: var(--blue-dark);
    --card-background: var(--gray-lightest);
    --card-text: var(--gray-darkest);
    --footer-background: var(--gray-lightest);
}

/* Base Typography */
body {
    font-family: 'Satoshi', 'Inter', sans-serif;
    color: var(--body-text);
    background-color: var(--white);
    line-height: 1.5;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700; /* Bold */
    color: var(--header-color);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2rem;
    line-height: 1.25;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.3;
}

h4 {
    font-size: 1.5rem;
    line-height: 1.35;
}

h5 {
    font-size: 1.25rem;
    line-height: 1.4;
}

h6 {
    font-size: 1rem;
    line-height: 1.5;
}

p, li, span {
    font-family: 'Inter', sans-serif;
    font-weight: 400; /* Regular */
    color: var(--text-color);
}

a {
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--blue-light);
    text-decoration: underline;
}

/* Button Styles */
.btn-primary, .cta-button, .enroll-button {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(20, 114, 194, 0.25);
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(20, 114, 194, 0.35);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

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

.markdown-content h1, .markdown-content h2, .markdown-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.markdown-content ul, .markdown-content ol {
    margin-left: 1.5em;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.markdown-content th, .markdown-content td {
    border: 1px solid #ddd;
    padding: 8px;
}

.markdown-content th {
    background-color: #f4f4f4;
}

.blog-header {
    background: var(--section-gradient);
    padding: 60px 0;
}

.blog-section {
    padding: 80px 0;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.blog-card img {
    height: 200px;
    object-fit: cover;
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-meta {
    color: var(--light-text);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.blog-meta i {
    margin-right: 5px;
}

.blog-meta span {
    margin-right: 15px;
}

.featured-post {
    background: var(--blue-white-light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    cursor: pointer;
}

.featured-post img {
    height: 400px;
    object-fit: cover;
}

.featured-badge {
    background-color: var(--primary-blue);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 10px;
}

.custom-btn {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    padding: 8px 20px;
}

.custom-btn:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
}

.section-title {
    color: var(--primary-blue);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-blue);
}

.sidebar-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-blue);
}

.category-list, .recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li, .recent-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.category-list li:last-child, .recent-list li:last-child {
    border-bottom: none;
}

.category-list a, .recent-list a {
    color: var(--body-text);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.category-list a:hover, .recent-list a:hover {
    color: var(--primary-blue);
}

.tag-cloud a {
    display: inline-block;
    background: var(--blue-white-light);
    color: var(--body-text);
    padding: 5px 12px;
    border-radius: 20px;
    margin: 0 5px 10px 0;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.tag-cloud a:hover {
    background: var(--primary-blue);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: inherit;
    border-color: var(--primary-blue);
}

.pagination .page-link {
    color: var(--primary-blue);
    cursor: pointer;
}

.pagination .page-link:hover {
    color: var(--dark-blue);
}

/* Modal styles */
.blog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.blog-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

.blog-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--light-text);
}

.blog-modal-close:hover {
    color: var(--primary-blue);
}

.blog-modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.blog-modal-title {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.blog-modal-body {
    margin-bottom: 20px;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

/* Comment section */
.comment-section {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.comment {
    display: flex;
    margin-bottom: 20px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 5px;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-bottom: 8px;
}

.comment-text {
    line-height: 1.5;
}

.comment-form {
    margin-top: 30px;
}

.search-results {
    display: none;
    position: absolute;
    width: 100%;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: var(--blue-white-light);
}

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

.search-wrapper {
    position: relative;
}

/* Newsletter success message */
.newsletter-success {
    display: none;
    color: green;
    margin-top: 10px;
}

/* For expanded/collapsed content */
.blog-card .card-text-full {
    display: none;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Blog Details Section Styles */
.blog-details-section {
    background: var(--blue-white-medium);
    padding: 80px 0;
}

.blog-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.blog-content img {
    border-radius: 8px;
}

.blog-content h2 {
    color: var(--dark-blue);
    font-size: 2rem;
    line-height: 1.3;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--light-text);
    font-size: 0.9rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
}

.blog-meta i {
    color: var(--primary-blue);
    margin-right: 6px;
}

.blog-content p {
    color: var(--body-text);
    line-height: 1.8;
    font-size: 1.05rem;
}

.breadcrumb-wrapper {
    background-color: white;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
  
.breadcrumb {
    margin-bottom: 0;
}
  
.breadcrumb-item a {
    color: var(--primary-blue);
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

/* Navbar styles */
.navbar {
    padding-top: 0.5rem;    /* Reduce top padding */
    padding-bottom: 0.5rem; /* Reduce bottom padding */
}

.brand-name {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.footer-link:hover {
    color: #4361ee;
}

.social-icons a {
    color: #6c757d;
    margin: 0 0.5rem;
    text-decoration: none;
}

.social-icons a:hover {
    color: #4361ee;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: "•";
    color: #4361ee;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.25rem;
}

.btn-primary {
    background-color: #4361ee;
    border-color: #4361ee;
    padding: 0.75rem 2rem;
    border-radius: 8px;
}

.btn-primary:hover {
    background-color: #3451db;
    border-color: #3451db;
}

footer{
    background-color: var(--blue-white-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-details-section {
        padding: 50px 0;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-content h2 {
        font-size: 1.6rem;
    }
    
    .blog-meta {
        gap: 15px;
        font-size: 0.8rem;
    }
}
