/* Reset basic spacing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body base style */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f9;
    color: #333;
    line-height: 1.5;
}
/* ===============================
   BUTTONS
=============================== */
.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    transition: 0.3s;
}
.btn:hover { opacity: 0.9; }

.btn-preview { background: #6c757d; } /* Grey */
.btn-draft   { background: #f0ad4e; } /* Orange */
.btn-public  { background: #28a745; } /* Green */
.btn-edit    { background: #007bff; } /* Blue */
.btn-delete  { background: #dc3545; } /* Red */

/* ===============================
   FORMS & INPUTS

input[type="text"], input[type="file"], select, textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 12px;
    font-size: 14px;
    box-sizing: border-box;
}
=============================== */
label { font-weight: 600; }

/* ===============================
   EDITOR
=============================== */
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
.editor-toolbar button {
    padding: 6px 10px;
    border: 1px solid #bbb;
    background: #eee;
    cursor: pointer;
    border-radius: 4px;
}
.editor-toolbar button:hover {
    background: #ddd;
}

#editor {
    min-height: 300px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
    background: #fff;
    overflow-y: auto;
}

/* ===============================
   POSTS TABLE
=============================== */
.post-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.post-table th, .post-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}
.post-table th {
    background: #f0f0f0;
}
.post-table img {
    border-radius: 4px;
}

/* ===============================
   POST PAGE CONTENT
=============================== */
.post-content img {
    max-width: 100%;
    display: block;
    margin-bottom: 15px;
    border-radius: 6px;
}

.post-content p {
    line-height: 1.6;
    margin-bottom: 10px;
}
.edit-button {
margin: 10px;
display: flex;
justify-content: flex-end;
}

.draft-save button {
    background: #ffad18;
    color: #ffffff;
    padding: 8px;
    border-radius: 8px;
    font-weight: 600;
    margin-right:  10px;
    text-decoration: none;
    border: 1px slategrey solid;
}

.public-save button {
    background: #0f6309;
    color: #ffffff;
    padding: 8px;
    border-radius: 8px;
    font-weight: 600;
     text-decoration: none;
    border: 1px slategrey solid;
}

/* =========================
   Post Card
========================= */
.post-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 10px;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Featured image */
.post-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Title */
.post-card h2 {
    font-size: 22px;
    margin: 0 0 10px 0;
}
.post-card h2 a {
    color: #0c36b7;
}
.post-card h2 a:hover{
        color: #2f9112;

}

/* Category */
.post-card p.category {
    font-size: 14px;
    color: #555;
    margin: 0 0 10px 0;
}
.post-card p.category a {
    color: #007BFF;
}

/* Content preview */
.post-card p.preview {
    color: #333;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

/* Read More button */
.post-card a.read-more {
    display: inline-block;
    padding: 6px 12px;
    background: #007BFF;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}
.post-card a.read-more:hover {
    background: #0056b3;
}

/* Published date */
.post-card p.date {
    font-size: 12px;
    color: #999;
    margin: 5px 0 0 0;
}

/* =========================
   Inline Meta Row
========================= */
.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
}

/* Read more */
.post-meta .read-more {
    padding: 4px 10px;
    font-size: 13px;
}

/* Category link */
.post-meta .category {
    color: #007BFF;
    text-decoration: none;
}

.post-meta .category:hover {
    text-decoration: underline;
}

/* Separator | */
.post-meta .separator {
    color: #aaa;
}

/* Date */
.post-meta .date {
    font-size: 13px;
    color: #777;
}
.post-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 70%;
}

.post-title h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.post-card a {
    color: #0c36b7;
}
.post-card a:hover{
        color: #2f9112;

}
.post-image-wrap img {
    width: 100%;
    border-radius: 8px;
}

/* Mobile */
@media (max-width:768px){
    .post-container {
        width: 95%;
    }

    .post-title h1 {
        font-size: 22px;
    }
}


/* Responsive */
@media (max-width:768px){
    .post-card img {
        max-height: 200px;
    }
    .post-card h2 {
        font-size: 20px;
    }
}

        /* ===== Category Section ===== */
        .category-section {
            width: 90%;
            margin: 50px auto;
        }

        .category-title {
            font-size: 28px;
            margin-bottom: 20px;
            border-bottom: 2px solid #ddd;
            padding-bottom: 5px;
        }

        .category-posts {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
            gap: 20px;
        }

        /* ===== Post Cat ===== */
        .post-cat {
            border: 1px solid #eee;
            border-radius: 8px;
            overflow: hidden;
            background: #fff;
            transition: box-shadow 0.3s;
        }

        .post-cat:hover {
            box-shadow: 0 6px 15px rgba(0,0,0,0.1);
        }

        .post-link {
            display: block;
            color: inherit;
            text-decoration: none;
        }

        .post-image-wrap {
            position: relative;
        }

        .post-image-wrap img {
            width: 100%;
            display: block;
        }

        /* Overlay text (does NOT block click) */
        .image-text {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0,0,0,0.6);
            color: #fff;
            padding: 10px;
            font-size: 14px;
            pointer-events: none; /* 🔥 VERY IMPORTANT */
        }

        .post-cat h3 {
            font-size: 18px;
            padding: 12px;
            margin: 0;
        }

        .view-all {
            display: inline-block;
            margin-top: 15px;
            font-size: 14px;
        }
.category-block{
 
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.2s, box-shadow;
}

/* ===============================
   Main 3-column Layout
   =============================== */
.container-wrap {
    display: flex;
    align-items: flex-start;
   background-color: #F5F5F5;
   width:100%;
}

/* Left Sidebar – 30% */
.sidebar-left {
    flex: 0 0 29%;
        margin: 10px 5px 5px 10px;

}

/* Center Content – 40% */
.content-main {
    flex: 0 0 39.3%;
        margin: 10px 5px 5px 5px;

}

/* Right Sidebar – 30% */
.sidebar-right {
    flex: 0 0 29%;
    margin: 10px 10px 5px 05px;
}

.advertisement_block{
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.2s, box-shadow;
}
/* ===============================
   Tablet view
   =============================== */
@media (max-width: 1024px) {
    .container-wrap {
        flex-wrap: wrap;
    }

    .sidebar-left,
    .sidebar-right {
        flex: 0 0 50%;
    }

    .content-main {
        flex: 0 0 100%;
        order: -1; /* center content comes first */
    }
}

/* ===============================
   Mobile view
   =============================== */
@media (max-width: 768px) {
    .container-wrap {
        flex-direction: column;
    }

    .sidebar-left,
    .content-main,
    .sidebar-right {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    .post-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 0 10px 10px 0;}
}



/* ==========================
   Headings
   ========================== */
h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #1e3a8a;
    font-size: 28px;
}

/* ==========================
   Year title block
   ========================== */
.year-title {
    background: #1e3a8a;
    color: #fff;
    padding: 10px;
    margin-top: 30px;
    border-radius: 6px;
    font-size: 20px;
}

/* ==========================
   Team / Cards container
   ========================== */
.team {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    justify-content: center;
}

/* ==========================
   Individual card
   ========================== */
.card {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ==========================
   Card image
   ========================== */
.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* ==========================
   Card text
   ========================== */
.card h3 {
    margin: 5px 0;
    font-size: 18px;
    color: #1e3a8a;
}

.card p {
    margin: 2px 0;
    font-size: 14px;
    color: #333;
}

/* ==========================
   Notices / Messages
   ========================== */
.notice {
    color: red;
    text-align: center;
    font-size: 16px;
    margin-top: 20px;
}

/* ==========================
   Responsive design
   ========================== */
@media (max-width: 768px) {
    .card {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .card {
        width: 100%;
    }
}

/* ===============================
   ADMIN PAGE WRAPPER
================================*/
/* Main container */
.admin-container{
    max-width:900px;
    margin: auto;
    padding:0 15px;
}
.admin-container h1{
 margin:40px 0 20px;
    padding:12px 15px;
    background:linear-gradient(90deg,#1f3a8a,#2563eb);
    color:#fff;
    font-size:20px;
    border-radius:6px;}
/* Page title */
.Administration-title h1{
    text-align:center;
    font-size:28px;
    color:#1f3a8a;
    margin-bottom:40px;
}

/* Year title */
.admin-year-title{
    margin:40px 0 20px;
    padding:12px 15px;
    background:linear-gradient(90deg,#1f3a8a,#2563eb);
    color:#fff;
    font-size:20px;
    border-radius:6px;
    text-align: center;
}

/* TEAM WRAPPER */
.admin-team{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;   /* last row auto center */
    gap:25px;
    margin-bottom:30px;
}

/* Each card width → 3 cards per row */
.admin-card{
    width: calc(33.333% - 25px);
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 6px 15px rgba(0,0,0,0.12);
    text-align:center;
    transition:all 0.3s ease;
}

/* Hover */
.admin-card:hover{
    transform:translateY(-6px);
    box-shadow:0 10px 22px rgba(0,0,0,0.2);
}

/* Image */
.admin-card img{
    width:100%;
    height:auto;
    object-fit:cover;
}

/* Text */
.admin-card h3{
    margin:10px 0 5px;
    font-size:20px;
    color:#1f3a8a;
}

.admin-card p{
    margin:4px 0;
    font-size:14px;
    color:#444;
}


/* Notice */
.admin-notice{
    text-align:center;
    color:#b91c1c;
    background:#fee2e2;
    padding:12px;
    border-radius:6px;
    margin:20px 0;
}

/* Tablet */
@media (max-width: 900px){
    .admin-card{
        width: calc(50% - 25px);  /* 2 per row */
    }
}

/* Mobile */
@media (max-width: 500px){
    .admin-card{
        width: 100%;  /* 1 per row */
    }
}

/*contact.php*/
.contact-container{
    max-width:600px;
    margin:50px auto;
    padding:25px;
    background:#ffffff;
    border-radius:12px;
    box-shadow:0 6px 18px rgba(0,0,0,0.15);
}

.contact-container h1{
    text-align:center;
    color:#1f3a8a;
    margin-bottom:25px;
}

.contact-form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.contact-form input,
.contact-form textarea{
    padding:12px;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:14px;
}

.contact-form input:focus,
.contact-form textarea:focus{
    outline:none;
    border-color:#2563eb;
}

.contact-form button{
    padding:12px;
    background:#2563eb;
    color:#fff;
    border:none;
    border-radius:6px;
    font-size:16px;
    cursor:pointer;
    transition:0.3s;
}

.contact-form button:hover{
    background:#1f3a8a;
}

/* Messages */
.success-msg{
    text-align:center;
    color:#15803d;
    background:#dcfce7;
    padding:10px;
    border-radius:6px;
    margin-bottom:15px;
}

.error-msg{
    text-align:center;
    color:#b91c1c;
    background:#fee2e2;
    padding:10px;
    border-radius:6px;
    margin-bottom:15px;
}
/* ================================
   CATEGORY CARD PERFECT WIDTH
================================ */

.cat-card {
    width: 100%;                /* FULL WIDTH */
    max-width: 900px;           /* Limit big screens */
    margin: 0 auto 20px auto;   /* Center card */

    display: flex;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;

    transition: 0.3s ease;
}

.cat-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* LEFT IMAGE FIXED SIZE */
.cat-card-img {
    width: 280px;       /* Fixed width */
    height: 180px;      /* Fixed height */
    flex-shrink: 0;
}

.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Perfect crop */
}

/* RIGHT CONTENT */
.cat-card-content {
    flex: 1;
    padding: 18px 20px;
}

/* Title */
.cat-card-content h2 {
    font-size: 20px;
    margin: 0 0 8px;
}

.cat-card-content h2 a {
    text-decoration: none;
    color: #222;
    font-weight: 700;
}

.cat-card-content h2 a:hover {
    color: #007bff;
}

/* Date */
.cat-date {
    font-size: 13px;
    color: gray;
    margin-bottom: 10px;
}

/* Preview */
.cat-preview {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 14px;
}

/* Button */
.cat-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #007bff;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.cat-btn:hover {
    background: #0056b3;
}

/* ================================
   MOBILE RESPONSIVE
================================ */

@media(max-width: 768px) {

    .cat-card {
        flex-direction: column;
        max-width: 100%;
    }

    .cat-card-img {
        width: 100%;
        height: 200px;
    }
}
.single-post {
    width: 85%;
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.single-post h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.single-post img {
    margin-top: 15px;
    border-radius: 12px;
}

.post-content {
    font-size: 18px;
    line-height: 1.7;
    margin-top: 20px;
}
/* ===============================
   Admin Panel Form
=============================== */
.admin-panel {
    width: 90%;
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: sans-serif;
}

.admin-panel h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #222;
}

.admin-panel label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.admin-panel input[type="text"],
.admin-panel select,
.admin-panel input[type="file"] {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 14px;
}

.admin-panel button {
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    width: 100%;
    font-size: 16px;
    transition: 0.3s;
}

.admin-panel button:hover {
    background: #0056b3;
}

/* ===============================
   Administration Team Cards
=============================== */
.admin-container {
    width: 90%;
    max-width: 1200px;
}

.admin-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #222;
}

.admin-team {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.admin-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    width: 220px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.admin-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.admin-card h3 {
    font-size: 18px;
    margin: 8px 0 4px;
    color: #222;
}

.admin-card p {
    font-size: 14px;
    color: #555;
    margin: 4px 0;
}

.admin-notice {
    text-align: center;
    font-size: 16px;
    color: #999;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-team {
        flex-direction: column;
        align-items: center;
    }

    .admin-card {
        width: 90%;
    }
}

