/*
Theme Name: JobNewsTamil
Theme URI: https://jobnewstamil.com/
Author: JobNewsTamil
Author URI: https://jobnewstamil.com/
Description: Clean, modern and responsive Tamil Government Jobs and Recruitment WordPress Theme.
Version: 1.0.0
Text Domain: jobnewstamil
*/

/* =========================================================
   1. RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;

    background: #f5f7fa;
    color: #1f2937;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

iframe,
video {
    max-width: 100%;
}

figure {
    margin: 0 0 25px;
}

a {
    color: #1d4ed8;
    text-decoration: none;
}

a:hover {
    color: #1e40af;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   2. ACCESSIBILITY
========================================================= */

.screen-reader-text {
    position: absolute !important;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}

.screen-reader-text:focus {
    position: fixed !important;

    top: 10px;
    left: 10px;

    width: auto;
    height: auto;

    padding: 10px 15px;
    margin: 0;

    clip: auto;

    background: #ffffff;
    color: #111827;

    z-index: 999999;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   3. WORDPRESS CORE
========================================================= */

.alignleft {
    float: left;
    margin: 0 25px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 25px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    margin-top: 7px;

    font-size: 13px;
    line-height: 1.5;

    color: #64748b;
    text-align: center;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.sticky {
    display: block;
}

.bypostauthor {
    display: block;
}


/* =========================================================
   4. GLOBAL CONTAINER
========================================================= */

.jnt-container {
    width: 100%;
    max-width: 1200px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 15px;
    padding-right: 15px;
}


/* =========================================================
   5. HEADER
========================================================= */

.jnt-header {
    width: 100%;
    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;
}

.jnt-header-inner {
    width: 100%;
    max-width: 1200px;

    min-height: 78px;

    margin: 0 auto;
    padding: 12px 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.jnt-site-branding {
    min-width: 0;
}

.jnt-site-title {
    margin: 0;

    font-size: 27px;
    line-height: 1.2;
    font-weight: 800;

    letter-spacing: -0.3px;
}

.jnt-site-title a {
    color: #172033;
    text-decoration: none;
}

.jnt-site-description {
    margin: 3px 0 0;

    color: #64748b;

    font-size: 13px;
    line-height: 1.4;
}


/* =========================================================
   6. NAVIGATION
========================================================= */

.jnt-navigation {
    display: flex;
    align-items: center;
}

.jnt-navigation ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    list-style: none;

    padding: 0;
    margin: 0;

    gap: 4px;
}

.jnt-navigation li {
    position: relative;
    margin: 0;
    padding: 0;
}

.jnt-navigation a {
    display: block;

    padding: 9px 11px;

    border-radius: 6px;

    color: #334155;

    font-size: 14px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.jnt-navigation a:hover,
.jnt-navigation .current-menu-item > a,
.jnt-navigation .current_page_item > a {
    background: #eff6ff;
    color: #1d4ed8;
}


/* Dropdown */

.jnt-navigation .sub-menu {
    position: absolute;

    top: 100%;
    left: 0;

    min-width: 210px;

    padding: 8px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 8px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);

    opacity: 0;
    visibility: hidden;

    transform: translateY(5px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 1000;
}

.jnt-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.jnt-navigation .sub-menu li {
    width: 100%;
}

.jnt-navigation .sub-menu a {
    width: 100%;
}


/* Mobile menu button */

.jnt-menu-toggle {
    display: none;

    border: 0;
    border-radius: 6px;

    background: #1d4ed8;
    color: #ffffff;

    padding: 9px 13px;

    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   7. TICKER / BREAKING NEWS
========================================================= */

.jnt-ticker {
    width: 100%;

    background: #172033;
    color: #ffffff;

    overflow: hidden;
}

.jnt-ticker-inner {
    width: 100%;
    max-width: 1200px;

    min-height: 40px;

    margin: 0 auto;
    padding: 0 15px;

    display: flex;
    align-items: center;
}

.jnt-ticker-label {
    flex: 0 0 auto;

    margin-right: 15px;

    padding: 5px 10px;

    border-radius: 4px;

    background: #dc2626;
    color: #ffffff;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
}

.jnt-ticker-content {
    min-width: 0;
    overflow: hidden;
}

.jnt-ticker-content a {
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   8. MAIN CONTENT
========================================================= */

.site-main {
    width: 100%;
}

.site-content {
    width: 100%;
}


/* =========================================================
   9. TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    color: #172033;

    font-weight: 750;

    line-height: 1.35;
}

h1 {
    font-size: 34px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 23px;
}

h4 {
    font-size: 20px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

p {
    margin: 0 0 18px;
}

ul,
ol {
    margin: 0 0 20px;
    padding-left: 25px;
}

li {
    margin-bottom: 7px;
}

blockquote {
    margin: 25px 0;

    padding: 18px 22px;

    border-left: 4px solid #1d4ed8;

    background: #eff6ff;

    color: #334155;

    border-radius: 0 7px 7px 0;
}

blockquote p:last-child {
    margin-bottom: 0;
}

hr {
    height: 1px;

    margin: 30px 0;

    border: 0;

    background: #e5e7eb;
}


/* =========================================================
   10. CONTENT TABLES
========================================================= */

.entry-content table,
.page-content table,
.jnt-content table {
    width: 100%;

    margin: 25px 0;

    border-collapse: collapse;

    background: #ffffff;
}

.entry-content th,
.entry-content td,
.page-content th,
.page-content td,
.jnt-content th,
.jnt-content td {
    padding: 10px 12px;

    border: 1px solid #dfe3e8;

    text-align: left;

    vertical-align: top;
}

.entry-content th,
.page-content th,
.jnt-content th {
    background: #f1f5f9;

    color: #172033;

    font-weight: 700;
}


/* =========================================================
   11. FORMS
========================================================= */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;

    padding: 11px 13px;

    border: 1px solid #d5dbe3;
    border-radius: 7px;

    background: #ffffff;
    color: #1f2937;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #1d4ed8;

    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.10);
}

textarea {
    min-height: 140px;

    resize: vertical;
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    border: 0;
    border-radius: 7px;

    padding: 10px 17px;

    background: #1d4ed8;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
    background: #1e40af;
}


/* =========================================================
   12. SEARCH FORM
========================================================= */

.search-form {
    display: flex;
    align-items: stretch;

    gap: 8px;
}

.search-form label {
    flex: 1;
}

.search-form .search-field {
    height: 44px;
}

.search-form .search-submit {
    flex: 0 0 auto;

    height: 44px;
}


/* =========================================================
   13. CONTENT IMAGES
========================================================= */

.entry-content img,
.page-content img {
    max-width: 100%;
    height: auto;

    border-radius: 6px;
}

.entry-content .wp-block-image,
.page-content .wp-block-image {
    margin: 25px 0;
}

.entry-content .wp-block-image img,
.page-content .wp-block-image img {
    display: block;
}


/* =========================================================
   14. BUTTONS
========================================================= */

.jnt-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 10px 17px;

    border-radius: 7px;

    background: #1d4ed8;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.jnt-button:hover {
    background: #1e40af;
    color: #ffffff;

    transform: translateY(-1px);
}


/* =========================================================
   15. WORDPRESS PAGINATION
========================================================= */

.nav-links {
    display: flex;

    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 30px;
}

.nav-links a,
.nav-links span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 40px;
    min-height: 40px;

    padding: 7px 12px;

    border: 1px solid #dfe3e8;
    border-radius: 6px;

    background: #ffffff;

    color: #334155;

    font-size: 14px;
    font-weight: 600;
}

.nav-links a:hover,
.nav-links .current {
    border-color: #1d4ed8;

    background: #1d4ed8;
    color: #ffffff;
}


/* =========================================================
   16. COMMENTS
========================================================= */

.comments-area {
    margin-top: 35px;

    padding: 25px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.comments-title {
    margin-bottom: 20px;

    font-size: 23px;
}

.comment-list {
    list-style: none;

    margin: 0;
    padding: 0;
}

.comment-list .comment {
    padding: 18px 0;

    border-bottom: 1px solid #e5e7eb;
}

.comment-list .comment:last-child {
    border-bottom: 0;
}

.comment-author {
    font-weight: 700;
}

.comment-meta {
    font-size: 12px;
    color: #64748b;
}


/* =========================================================
   17. FOOTER
========================================================= */

.jnt-footer {
    width: 100%;

    margin-top: 40px;

    background: #172033;
    color: #cbd5e1;
}

.jnt-footer-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 45px 15px 30px;
}

.jnt-footer-widgets {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 30px;
}

.jnt-footer h2,
.jnt-footer h3,
.jnt-footer h4 {
    margin: 0 0 15px;

    color: #ffffff;

    font-size: 18px;
}

.jnt-footer p {
    color: #cbd5e1;

    font-size: 14px;
}

.jnt-footer ul {
    list-style: none;

    margin: 0;
    padding: 0;
}

.jnt-footer li {
    margin: 0 0 8px;
}

.jnt-footer a {
    color: #cbd5e1;

    font-size: 14px;

    transition: color 0.2s ease;
}

.jnt-footer a:hover {
    color: #ffffff;
}

.jnt-footer-bottom {
    margin-top: 35px;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.10);

    text-align: center;

    color: #94a3b8;

    font-size: 13px;
}


/* =========================================================
   18. MOBILE FOOTER
========================================================= */

@media (max-width: 767px) {

    .jnt-footer {
        margin-top: 30px;
    }

    .jnt-footer-container {
        padding-top: 35px;
        padding-bottom: 25px;
    }

    .jnt-footer-widgets {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .jnt-footer-bottom {
        margin-top: 25px;
    }
}


/* =========================================================
   19. TABLET
========================================================= */

@media (max-width: 1024px) {

    .jnt-header-inner {
        min-height: 70px;
    }

    .jnt-site-title {
        font-size: 24px;
    }

    .jnt-navigation a {
        padding: 8px 8px;

        font-size: 13px;
    }

    .jnt-footer-widgets {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    h1 {
        font-size: 31px;
    }

    h2 {
        font-size: 26px;
    }

}


/* =========================================================
   20. MOBILE NAVIGATION
========================================================= */

@media (max-width: 767px) {

    .jnt-header-inner {
        position: relative;

        min-height: 65px;

        padding: 10px 12px;
    }

    .jnt-site-title {
        font-size: 22px;
    }

    .jnt-site-description {
        font-size: 11px;
    }

    .jnt-menu-toggle {
        display: block;
    }

    .jnt-navigation {
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        display: none;

        width: 100%;

        padding: 10px 12px;

        background: #ffffff;

        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;

        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

        z-index: 9999;
    }

    .jnt-navigation.jnt-menu-open {
        display: block;
    }

    .jnt-navigation ul {
        display: block;

        width: 100%;
    }

    .jnt-navigation li {
        width: 100%;
    }

    .jnt-navigation a {
        width: 100%;

        padding: 10px 12px;

        border-radius: 5px;

        font-size: 14px;
    }

    /* Mobile dropdown */

    .jnt-navigation .sub-menu {
        position: static;

        display: block;

        min-width: 0;

        padding: 0 0 0 12px;

        border: 0;

        box-shadow: none;

        opacity: 1;
        visibility: visible;

        transform: none;
    }

    .jnt-ticker-inner {
        min-height: 38px;

        padding: 0 10px;
    }

    .jnt-ticker-label {
        margin-right: 8px;

        padding: 4px 7px;

        font-size: 10px;
    }

    .jnt-ticker-content a {
        font-size: 12px;
    }

    h1 {
        font-size: 27px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 21px;
    }

    .alignleft,
    .alignright {
        float: none;

        display: block;

        margin: 0 auto 20px;

        text-align: center;
    }

    .entry-content table,
    .page-content table {
        display: block;

        width: 100%;

        overflow-x: auto;

        white-space: nowrap;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form .search-submit {
        width: 100%;
    }

}


/* =========================================================
   21. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    body {
        font-size: 15px;
    }

    .jnt-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .jnt-site-title {
        font-size: 20px;
    }

    .jnt-site-description {
        display: none;
    }

    .jnt-menu-toggle {
        padding: 8px 11px;

        font-size: 13px;
    }

    .jnt-ticker-label {
        display: none;
    }

    .jnt-ticker-content a {
        font-size: 11px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 21px;
    }

    h3 {
        font-size: 19px;
    }

    .entry-content th,
    .entry-content td,
    .page-content th,
    .page-content td {
        padding: 8px 10px;

        font-size: 13px;
    }

    blockquote {
        padding: 14px 16px;
    }

}


/* =========================================================
   22. DARK SELECTION
========================================================= */

::selection {
    background: #1d4ed8;
    color: #ffffff;
}


/* =========================================================
   23. WORDPRESS BLOCKS
========================================================= */

.wp-block-button__link {
    border-radius: 7px;

    padding: 10px 17px;

    font-size: 14px;
    font-weight: 700;
}

.wp-block-separator {
    margin: 30px auto;
}

.wp-block-table {
    overflow-x: auto;
}

.wp-block-quote {
    border-left-color: #1d4ed8;
}

.wp-block-heading {
    color: #172033;
}


/* =========================================================
   24. RESPONSIVE EMBEDS
========================================================= */

.wp-block-embed,
.wp-block-video,
.wp-block-audio {
    max-width: 100%;
}

.wp-block-embed iframe {
    max-width: 100%;
}


/* =========================================================
   25. PRINT
========================================================= */

@media print {

    .jnt-navigation,
    .jnt-menu-toggle,
    .jnt-ticker,
    .jnt-sidebar,
    .jnt-footer,
    .jnt-share-buttons {
        display: none !important;
    }

    body {
        background: #ffffff;
        color: #000000;
    }

    a {
        color: #000000;
        text-decoration: underline;
    }

}