/* Reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f9f9f9;
    color: #222;
  
}

main {
    max-width: 1280px;
    margin: auto;
}


.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
a {
    text-decoration: none;
    color: #1a2b6b;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 16px 0;
}
.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo-area .logo-link {
    display: inline-block;
}
.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #1a2b6b;
    letter-spacing: -0.5px;
}
.tagline {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: 400;
    margin-top: 2px;
}
.header-search .search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.header-search input[type="text"] {
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 40px;
    font-size: 16px;
    min-width: 260px;
    background: #ffffff;
    transition: 0.2s;
}
.header-search input[type="text"]:focus {
    outline: none;
    border-color: #1a2b6b;
    background: #fff;
}
.search-btn {
    background: #ffcc00;
    border: none;
    border-radius: 40px;
    padding: 10px 24px;
    font-weight: 600;
    color: #1a2b6b;
    cursor: pointer;
    transition: 0.2s;
    font-size: 16px;
}
.search-btn:hover {
    background: #d4af37;
}

/* Footer */
.site-footer {
    background: #1a2b6b;
    color: #fff;
    padding: 32px 0;
    margin-top: 40px;
}
.footer-content {
    text-align: center;
}
.footer-tagline {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 12px;
}
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 12px 0;
}
.footer-nav a {
    color: #fff;
    font-size: 14px;
    border-bottom: 1px dotted rgba(255,255,255,0.3);
    padding-bottom: 2px;
}
.footer-nav a:hover {
    border-bottom-color: #ffcc00;
}
.footer-copy {
    font-size: 13px;
    color: #ccc;
    margin-top: 12px;
}

/* Two-column layout */
.two-col {
    display: flex;
    gap: 32px;
    margin-top: 24px;
}
.sidebar {
    flex: 0 0 300px;
    background: #f7f5eb;
    border-radius: 16px;
    padding: 24px 20px;
    border: 1px solid #e0dcd0;
    height: fit-content;
}
.main-content {
    flex: 1;
    min-width: 0;
}

/* Sidebar */
.sidebar h3 {
    font-size: 20px;
    color: #1a2b6b;
    margin-bottom: 16px;
    font-weight: 600;
}
.sidebar-list {
    list-style: none;
    padding: 0;
}
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e8e3d6;
}
.sidebar-item:last-child {
    border-bottom: none;
}
.brand-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f9f9f9;
    color: #1a2b6b;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.brand-info {
    flex: 1;
}
.brand-name {
    font-weight: 600;
    color: #1a2b6b;
    font-size: 16px;
}
.brand-date {
    font-size: 13px;
    color: #666;
    display: block;
}
.sidebar-pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 16px;
    justify-content: center;
}
.sidebar-pagination a, .sidebar-pagination span {
    padding: 4px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #1a2b6b;
}
.sidebar-pagination .current {
    background: #1a2b6b;
    color: #fff;
    border-color: #1a2b6b;
}
.sidebar-pagination a:hover {
    background: #e8e3d6;
}

/* Main content cards */
.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e0dcd0;
    margin-bottom: 24px;
}
.card h2 {
    font-size: 24px;
    color: #1a2b6b;
    margin-bottom: 12px;
    font-weight: 600;
}
.card p {
    color: #333;
}

/* Search and Browse */
.search-browse p {
    padding: 10px 0;
}
.search-browse .search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.search-browse .search-bar input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #ccc;
    border-radius: 40px;
    font-size: 16px;
    background: #fff;
}
.search-browse .search-bar button {
    padding: 12px 28px;
    border-radius: 40px;
    border: none;
    background: #ffcc00;
    color: #1a2b6b;
    font-weight: 600;
    cursor: pointer;
}
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.popular-item {
    background: #fff;
    padding: 7px 5px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #ddd;
    transition: 0.2s;
    color: #1a2b6b;
    font-weight: 500;
    font-size: 14px;
}
.popular-item:hover {
    border-color: #1a2b6b;
    background: #eef2ff;
}

/* Comments */
.comment-list {
    margin-top: 12px;
}
.comment-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e8e3d6;
}
.comment-card:last-child {
    border-bottom: none;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
}
.comment-meta {
    font-size: 14px;
    font-weight: 600;
    color: #1a2b6b;
}
.comment-meta span {
    font-weight: 400;
    color: #777;
    margin-left: 6px;
}
.comment-text {
    font-size: 15px;
    margin-top: 2px;
}

.comment-image-expand {
    max-width: 150px;
    max-height: 150px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: max-width 0.3s, max-height 0.3s;
    margin: 5px 0px;
}
.comment-image-expand.expanded {
    max-width: 100%;
    /*max-height: 1000px;*/
    max-height: 4000px;
}


/* Comment form */
.comment-form {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e0dcd0;
    margin-bottom: 20px;
}
.comment-form .form-group {
    margin-bottom: 15px;
}
.comment-form label {
    display: block;
    font-weight: 600;
    color: #1a2b6b;
    font-size: 15px;
    margin-bottom: 4px;
}
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    transition: border 0.2s;
}
.comment-form textarea:focus {
    outline: none;
    border-color: #1a2b6b;
}
.comment-form input[type="file"] {
    padding: 8px 0;
}
.comment-form .btn {
    background: #ffcc00;
    color: #1a2b6b;
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    float: right;
}
.comment-form .btn:hover {
    background: #d4af37;
}
.comment-form small {
    color: #666;
    font-size: 13px;
}

/* Archive page */
.archive-header {
    margin-bottom: 20px;
}
.date-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}
.date-tabs a {
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 40px;
    font-size: 14px;
    color: #1a2b6b;
}
.date-tabs a.active {
    background: #1a2b6b;
    color: #fff;
    border-color: #1a2b6b;
}

/* pricing image */
.pricing-image {
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0dcd0;
}

.pricing-image {
    max-height: 480px;
    width: 100%;
    overflow: hidden;
     transition: max-height 0.3s ease;
}
.pricing-image img {
    width: 100%;
    height: auto;
    display: block;
}

.pricing-image-container {
    position: relative;
}

.pricing-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.view-full-btn {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.view-full-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.pricing-image-container.is-expanded .pricing-image {
    max-height: none;
}

.pricing-image-container.is-expanded::after {
    opacity: 0;
}


/* Pricing detail */
.pricing-table-wrapper {
    overflow-x: auto;
    margin: 15px 0;
}
.pricing-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.pricing-table-wrapper th {
    background: #e0e0e0;
    text-align: left;
    padding: 8px;
    border: 1px solid #aaa;
}
.pricing-table-wrapper td {
    padding: 8px;
    border: 1px solid #aaa;
}
.pricing-table-wrapper tr:nth-child(even) {
    background: #f5f5f5;
}
.pricing-table-wrapper tr:nth-child(odd) {
    background: #fff;
}

.pricing-table-wrapper ul {
    padding-left: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .two-col {
        flex-direction: column;
    }
    .sidebar {
        flex: 1;
        width: 100%;
    }
    .header-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .header-search .search-form {
        width: 100%;
    }
    .header-search input[type="text"] {
        min-width: auto;
        flex: 1;
    }
}


/* design 2 */

/* Two-column layout with source order */
.two-col {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 24px;
}
.main-content {
    flex: 1;
    min-width: 0; /* prevent overflow */
}
.sidebar {
    flex: 0 0 300px;
    order: -1; /* moves sidebar to the left on desktop */
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px;
    border: 1px solid #e0dcd0;
    height: fit-content;
}
/* On mobile, sidebar goes back to source order (after main) */
@media (max-width: 900px) {
    .two-col {
        flex-direction: column;
        gap: 20px;
    }
    .sidebar {
        flex: 1;
        order: 0; /* reset, so it stays after main content */
        width: 100%;
    }
}

/* Ensure headings are properly styled */
.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #1a2b6b;
    letter-spacing: -0.5px;
    margin: 0;
    display: inline-block;
}
.tagline {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    margin: 0;
}
h1, h2, h3, h4 {
    font-weight: 600;
    color: #1a2b6b;
}
h1 { font-size: 28px; }
h2 { font-size: 22px; margin: 0 0 12px 0; }
h3 { font-size: 18px; }
/* Other styles remain the same */