/* ===== RESET & BASE STYLES ===== */
html, body {
    overflow-x: hidden;
    user-select: none;
    max-width: 1000px;
    margin: auto;
    background: #f8f9fa;
    font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    box-sizing: border-box;
}

*:before, *:after {
    box-sizing: border-box;
}

/* ===== GOOGLE FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@600;700&display=swap');

/* ===== HEADER ===== */
.header {
    overflow: hidden;
    position: fixed;
    z-index: 100;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    max-width: 1000px;
    text-align: center;
    padding: 15px 20px;
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header.small {
    height: 80px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo span {
    color: #ffd700;
}

/* ===== MENU ICONS ===== */
.menuicon {
    display: block;
    font-size: 28px;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s;
    padding: 5px;
    border-radius: 5px;
}

.menuicon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

#search-icon {
    font-size: 22px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px;
    border-radius: 5px;
}

#search-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* ===== SIDENAV ===== */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 101;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #141e30 0%, #243b55 100%);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 70px;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 28px;
    background: #ff4757;
    color: #ffffff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sidenav .closebtn:hover {
    background: #ff6b81;
}

.sideitem {
    margin-top: 20px;
}

.sideitem a {
    padding: 18px 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sideitem a i {
    font-size: 20px;
    width: 30px;
}

.sideitem a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 35px;
    color: #ffd700;
}

/* ===== CARDS ===== */
.cards {
    max-width: 1000px;
    margin: 20px auto;
    display: grid;
    grid-gap: 20px;
    padding: 0 15px;
}

.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #e9ecef;
    position: relative;
}

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

.gridimg {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all 0.5s;
}

.card:hover .gridimg {
    transform: scale(1.05);
}

.gridtitle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #ffffff;
    padding: 20px 15px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.gridtitle span {
    display: block;
    font-size: 14px;
    color: #ffd700;
    margin-top: 5px;
    font-weight: 400;
}

/* ===== CONTENT AREA ===== */
.row {
    background: #ffffff;
    margin: 20px 15px;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.row h1, .row h2, .row h3, .row h4, .row h5, .row h6 {
    color: #2c3e50;
    padding: 15px 0;
    text-align: center;
    line-height: 1.4;
    font-size: 22px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-bottom: 3px solid #3498db;
    margin-bottom: 20px;
}

.postdate {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    display: inline-block;
    width: 100%;
}

.row p {
    padding: 15px 0;
    text-align: justify;
    line-height: 1.8;
    font-size: 16px;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
}

.row p:last-child {
    border-bottom: none;
}

/* ===== IMAGES ===== */
.wp-block-image {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s;
}

.wp-block-image:hover img {
    transform: scale(1.02);
}

.wp-block-image figcaption {
    background: linear-gradient(to right, #2c3e50, #4a6491);
    color: #ffffff;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* ===== TABLES ===== */
.wp-block-table {
    margin: 25px 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.wp-block-table th {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    padding: 18px 15px;
    font-weight: 600;
    text-align: left;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.wp-block-table th:last-child {
    border-right: none;
}

.wp-block-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    color: #2c3e50;
}

.wp-block-table td:last-child {
    border-right: none;
}

.wp-block-table tr:nth-child(even) {
    background: #f8f9fa;
}

.wp-block-table tr:hover {
    background: #e3f2fd;
}

.wp-block-table figcaption {
    background: #f8f9fa;
    color: #6c757d;
    font-size: 14px;
    padding: 12px;
    text-align: center;
    font-style: italic;
    border-top: 1px solid #e9ecef;
}

/* ===== LISTS ===== */
.row ul, .row ol {
    padding-left: 30px;
    margin: 20px 0;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.row ul li, .row ol li {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.7;
    color: #495057;
    position: relative;
    padding-left: 10px;
}

.row ul li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    left: -20px;
}

.row ol li {
    counter-increment: list-counter;
}

.row ol li:before {
    content: counter(list-counter) ".";
    color: #e74c3c;
    font-weight: bold;
    position: absolute;
    left: -25px;
}

/* ===== CODE BLOCKS ===== */
.wp-block-code {
    background: #2d3436;
    color: #dfe6e9;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    margin: 20px 0;
    overflow-x: auto;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* ===== QUOTE BLOCKS ===== */
.wp-block-quote {
    border-left: 5px solid #3498db;
    background: #f8f9fa;
    padding: 25px;
    margin: 25px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    position: relative;
}

.wp-block-quote:before {
    content: "❝";
    font-size: 40px;
    color: #3498db;
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.3;
}

.wp-block-quote p {
    border: none !important;
    padding: 0 !important;
    font-size: 18px;
    color: #2c3e50;
}

.wp-block-quote strong {
    color: #e74c3c;
    font-size: 16px;
    display: block;
    margin-top: 15px;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
    border-radius: 20px 20px 0 0;
}

.footer a {
    color: #3498db !important;
    text-decoration: none;
    transition: all 0.3s;
}

.footer a:hover {
    color: #ffd700 !important;
    text-decoration: underline;
}

/* ===== FIXED FOOTER ===== */
.fixfooter {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 2px solid #3498db;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 99;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.fixfooter a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #2c3e50 !important;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
    padding: 8px;
    border-radius: 8px;
    flex: 1;
    max-width: 80px;
}

.fixfooter a:hover {
    background: #3498db;
    color: #ffffff !important;
    transform: translateY(-5px);
}

.fixfooter i {
    font-size: 24px;
    margin-bottom: 5px;
}

.fixtxt {
    font-size: 11px;
    font-weight: 500;
}

/* ===== SOCIAL ICONS ===== */
.fa-facebook { background: #3b5998; }
.fa-twitter { background: #1da1f2; }
.fa-instagram { background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); }
.fa-youtube { background: #ff0000; }
.fa-whatsapp { background: #25d366; }
.fa-telegram { background: #0088cc; }
.fa-envelope { background: #ea4335; }

.fa {
    padding: 12px;
    font-size: 22px;
    width: 46px;
    height: 46px;
    text-align: center;
    text-decoration: none;
    margin: 5px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fa:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ===== SEARCH BAR ===== */
#searchbar {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 20px;
    z-index: 99;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: none;
    max-width: 1000px;
    margin: auto;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #3498db;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    transition: all 0.3s;
}

.search-form input:focus {
    border-color: #e74c3c;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-form button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form button:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1c6ca4 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* ===== TABS ===== */
.tab {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.tab button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.tab button:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.tab button.active {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    border-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.tabcontent {
    display: none;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1c6ca4 100%);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
    .cards { grid-template-columns: repeat(3, 1fr); }
    .mcards { grid-template-columns: repeat(9, 1fr); }
    .cardss { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 768px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .mcards { grid-template-columns: repeat(4, 1fr); }
    .cardss { grid-template-columns: repeat(3, 1fr); }
    .header { height: 60px; padding: 12px 15px; }
    .logo { font-size: 20px; }
    .row { margin: 15px 10px; padding: 20px; }
    .gridtitle { font-size: 14px; padding: 15px 10px; }
    .fixfooter { height: 60px; }
    .fixfooter a { font-size: 10px; max-width: 60px; }
    .fixfooter i { font-size: 20px; }
}

@media (max-width: 480px) {
    .cards { grid-template-columns: 1fr; }
    .mcards { grid-template-columns: repeat(3, 1fr); }
    .cardss { grid-template-columns: repeat(2, 1fr); }
    .header { height: 55px; padding: 10px; }
    .logo { font-size: 18px; }
    .menuicon { font-size: 24px; }
    #search-icon { font-size: 20px; }
    .row h1, .row h2, .row h3 { font-size: 20px; }
    .row p { font-size: 15px; padding: 12px 0; }
    .tab button { padding: 12px 20px; font-size: 14px; }
}