/* Guides page specific styles */
:root {
    --color-primary: #011f4b;
    --color-secondary: #03396c;
    --color-white: #ffffff;
    --color-light: #f8f9fa;
    --color-gray: #6b7280;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
}

/* Guide Categories Section */
.guide-categories {
    padding: 4rem 0;
    background: var(--color-light);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    background: var(--color-light);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: var(--color-primary);
    color: var(--color-white);
}

.category-title {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.category-description {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Featured Guides Section */
.featured-guides {
    padding: 4rem 0;
    background: var(--color-white);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.guide-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.guide-image {
    height: 200px;
    overflow: hidden;
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.guide-card:hover .guide-image img {
    transform: scale(1.05);
}

.guide-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.guide-category {
    display: inline-block;
    background: var(--color-light);
    color: var(--color-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.guide-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.guide-excerpt {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.guide-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-gray);
}

.guide-difficulty {
    display: flex;
    align-items: center;
}

.guide-difficulty::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.guide-difficulty:contains("Easy")::before {
    background-color: var(--color-success);
}

.guide-difficulty:contains("Moderate")::before {
    background-color: var(--color-warning);
}

.guide-difficulty:contains("Hard")::before {
    background-color: var(--color-danger);
}

.guide-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

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

/* Latest Guides Section */
.latest-guides {
    padding: 4rem 0;
    background: var(--color-light);
}

.guides-list {
    margin-top: 2rem;
}

.guide-item {
    display: flex;
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.guide-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.guide-item-date {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    text-align: center;
}

.guide-item-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.guide-item-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.guide-item-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.guide-item-title {
    margin-bottom: 0.5rem;
}

.guide-item-title a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.guide-item-title a:hover {
    color: var(--color-secondary);
}

.guide-item-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--color-gray);
    font-size: 0.85rem;
}

.guide-item-category {
    display: flex;
    align-items: center;
}

.guide-item-category::before {
    content: '\f07c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
}

.guide-item-author {
    display: flex;
    align-items: center;
}

.guide-item-author::before {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-item {
        flex-direction: column;
    }
    
    .guide-item-date {
        flex-direction: row;
        padding: 0.75rem;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .guide-item-date .day,
    .guide-item-date .month {
        font-size: 1rem;
    }
    
    .guide-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Guide Detail Page Styles */
.guide-detail {
    padding: 3rem 0;
}

.guide-detail-header {
    margin-bottom: 2rem;
}

.guide-detail-title {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.guide-detail-meta {
    display: flex;
    gap: 2rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.guide-detail-category,
.guide-detail-date,
.guide-detail-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-detail-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.guide-detail-image img {
    width: 100%;
    height: auto;
}

.guide-detail-content {
    line-height: 1.8;
    color: #333;
}

.guide-detail-content h2 {
    color: var(--color-primary);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.guide-detail-content h3 {
    color: var(--color-primary);
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
}

.guide-detail-content p {
    margin-bottom: 1.5rem;
}

.guide-detail-content ul,
.guide-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.guide-detail-content li {
    margin-bottom: 0.5rem;
}

.guide-detail-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.guide-detail-content .note {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.guide-detail-content .warning {
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.guide-detail-content .danger {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.guide-detail-content .step {
    display: flex;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.guide-detail-content .step-number {
    background: var(--color-primary);
    color: var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.guide-detail-content .step-content {
    flex-grow: 1;
}

.guide-detail-content .step-title {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.guide-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.guide-prev,
.guide-next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.guide-prev:hover,
.guide-next:hover {
    color: var(--color-secondary);
}

.guide-prev i,
.guide-next i {
    font-size: 0.8rem;
}