html {
    overflow-y: scroll;
}

/* Base container */
.mag-page {
    font-family: "Inter", "Georgia", serif;
    color: #1a1a1a;
    background: #ffffff;
    line-height: 1.4;
}

/* Header */
.mag-header {
    max-width: 80%;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dfe5e3;
}

.mag-logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #3f5f57; /* sage-green accent */
}

.mag-nav a {
    margin-left: 28px;
    text-decoration: none;
    color: #3f5f57; /* accent */
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.mag-nav a:hover {
    color: #2e4a43; /* darker accent */
}

/* Hero section */
.mag-hero {
    max-width: 820px;
    margin: 20px auto;
    padding: 0 24px;
}

.mag-hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #2e4a43; /* deep sage-green */
}

.mag-hero p {
    font-size: 1.25rem;
    color: #4f5a57; /* soft sage-green text */
}

/* Card grid */
.mag-grid {
    max-width: 100%;
    margin: 0 auto 80px;
    padding: 5px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 50px;
}

/* Card */
.mag-card {
    padding: 20px;
    border-radius: 12px;
    background: #f3f6f5; /* light sage-green background */
    border: 1px solid #dfe5e3;
    transition: all 0.25s ease;
}

.mag-card:hover {
    background: #ffffff;
    border-color: #cdd6d3;
    box-shadow: 0 12px 32px rgba(63, 95, 87, 0.08); /* soft green shadow */
    transform: translateY(-4px);
}

.mag-card h2 {
    font-size: 1.8rem;
    margin: 0 0 12px;
    line-height: 1.3;
    color: #2e4a43; /* premium heading */
}

.mag-card p {
    font-size: 1.05rem;
    color: #4f5a57;
    margin-bottom: 16px;
}

.mag-meta {
    font-size: 0.9rem;
    color: #6b7a76;
}

/* Article container */
.mag-article-page {
    max-width: 80%;
    margin: 40px auto 80px;
    padding: 0 24px;
    font-size: 1.1rem;
    color: #2e4a43; /* deep sage-green */
    line-height: 1.75;
}

/* Article title */
.mag-article-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #2e4a43;
    line-height: 1.25;
}

/* Subheadings */
.mag-article-page h2 {
    font-size: 1.6rem;
    margin: 40px 0 16px;
    color: #3f5f57;
}

/* Article text */
.mag-article-page p {
    margin-bottom: 20px;
    color: #4f5a57;
}

/* Left-aligned image */
.mag-article-img {
    float: left;
    width: 320px;
    max-width: 45%;
    margin: 0 28px 20px 0;
    border-radius: 12px;
    background: #f3f6f5;
    border: 1px solid #dfe5e3;
    box-shadow: 0 8px 24px rgba(63, 95, 87, 0.06);
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 800px) {
    .mag-article-img {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 24px 0;
    }

    .mag-article-title {
        font-size: 2rem;
    }
}

/* Wide image block */
.img_left {
    width: 650px;
    max-width: 100%;
}

/* Mobile version */
@media (max-width: 768px) {
    .img_left {
        width: 100%;
    }
}

/* Footer */
.mag-footer {
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #6b7a76;
    border-top: 1px solid #dfe5e3;
}

/* Additional responsive rules */

@media (max-width: 700px) {
    .mag-hero h1 {
        font-size: 2.4rem;
    }
    .mag-card h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 800px) {
    .mag-header,
    .mag-article-page,
    .mag-footer {
        max-width: 100%;
        padding: 10px;
    }
}

/* share buttons */
#share-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.share-btn {
    position: relative;
    display: inline-block;
    padding: 5px 10px;
    background-color: #0077ff;  
    color: white;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.share-btn:hover {
    background-color: #0059b3;
}

#share-pinterest {
    background-color: #E60023;  
}

#share-pinterest:hover {
    background-color: #b0001b;  
}

.share-tooltip {
    position: absolute;
    visibility: hidden;
    width: 150px;
    background-color: gray;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    z-index: 1;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.share-btn:hover .share-tooltip {
    visibility: visible;
    opacity: 1;
}

#cookieBanner {
    position: fixed;                        
    bottom: 20px;                           
    right: 20px;                            
    background-color: rgba(0, 0, 0, 0.7);  
    color: white;                           
    padding: 10px;                          
    border-radius: 5px;                     
    max-width: 400px;                       
    z-index: 9999;                          
}

#cookieBanner button {
    background-color: #fff;                 
    color: black;                           
    border-radius: 5px;                     
    cursor: pointer;                        
    padding: 5px 10px;                      
}

        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
        }
        .pagination a,
        .pagination span.current {
            padding: 3px 10px;
            color: #007bff;
            text-decoration: none;
            border-radius: 4px;
        }
        .pagination a:hover {
            background-color: #f4f4f4;
        }
        .pagination span.current {
            background-color: #444;
            color: white;
        }
        
th, td {
  text-align: left;
  padding: 5px 10px;
}        
tr:nth-child(even) {background-color: #f2f2f2;}
th {background-color: #f2f2f2;}