/* Keep the root variables and global styles */
:root {
    --primary-color: #4fc1a4;
    --secondary-color: #4fc1a4;
    --accent-color: #4fc1a4;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Raleway', sans-serif; */
}
/* a:hover{
    color: var(--primary-color);
} */
body {
    background: var(--light-bg);
    color: var(--text-color);
}

/* Layout Components */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    padding: 20px;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.main-content {
    flex: 1;
    margin-left: 270px;
    padding: 30px;
}

/* Components */
.card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    background: var(--primary-color);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 193, 164, 0.4);
}

/* Keep the form styles, table styles, and other common components */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    position: relative;
    isolation: isolate;
    display: inline-grid;
    place-content: center;
    clip-path: polygon(
        /* Top-left */
        0% var(--curve-size),
        var(--curve-size) 0,
        /* top-right */
        100% 0,
        100% calc(100% - var(--curve-size)),
        /* bottom-right 1 */
        calc(100% - var(--curve-size)) 100%,
        /* bottom-right 2 */
        0 100%);
  
    padding: 10px 25px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    background: linear-gradient(90deg, #ff9a00, #ff4e00);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;  

}

.read-more:hover {
    background: #3da88e;
}

.post-banner {
    width: 100%;
    height: 500px;
    padding-top:130px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 30px;
}

.post-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.56);
}

.post-banner h1 {
    color: #fff;
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
    font-size: 2.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.post-banner .breadcrumb {
    z-index: 9;
    background: none;
    color: var(--accent-color);
    text-align: center;
    justify-content: center;
    word-wrap: break-word;
}
.post-banner .breadcrumb a {
    color: #fff;
    text-decoration: none;
}
.post-banner .breadcrumb a:hover {
    text-decoration: underline;
}
.post-banner .breadcrumb span {
    color: var(--accent-color);
    text-decoration: none;
}
.blog-content{
    background-color: #f8f8f8;
    padding: 20px;
    padding-left: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: var(--transition);
}
.blog-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
}

/* Blog Page Link Button Styling */
.blog-content a,
.ql-snow .ql-editor a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--primary-color);
    color: white !important;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
    cursor: pointer;
    line-height: 1.5;
    text-align: center;
    justify-content: center;
    min-width: 160px;
}

.blog-content a:hover,
.ql-snow .ql-editor a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: var(--secondary-color);
    color: white !important;
}

/* Ensure button text remains white even after visited */
.blog-content a:visited,
.blog-content a:active,
.blog-content a:focus,
.ql-snow .ql-editor a:visited,
.ql-snow .ql-editor a:active,
.ql-snow .ql-editor a:focus {
    color: white !important;
    text-decoration: none;
}
