/* STC Blog System - Dedicated Page Styles (Header & Footer inherited from style.css) */



/* Blog Modal Overlay */
.blog,
#blogs {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    overflow: hidden;
    animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.blog-form-main {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    width: 480px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 40px);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    animation: zoomInCenter 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.blog-form {
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 102, 235, 0.25);
    border-radius: 20px;
    padding: 24px 26px 22px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog-form::-webkit-scrollbar {
    width: 6px;
}

.blog-form::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.blog-form form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

@keyframes zoomInCenter {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.85);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Modal Header (Unified for Login & Blog Modal) */
.modal-header,
.blog-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 18px;
    position: relative;
    box-sizing: border-box;
}

.modal-logo-title,
.blog-form-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-logo-title img,
.blog-form-logo img {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    object-fit: contain;
    animation: breathe 4s ease-in-out infinite;
    display: block;
}

.modal-logo-title h2,
.modal-logo-title h1,
.blog-form-logo h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.modal-logo-title #sp-1,
#blog-logo-h {
    color: #0066eb;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.close-btn,
#blog-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0066eb;
    border-radius: 8px;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    color: #0066eb;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: all 0.25s ease;
    user-select: none;
    margin-left: auto;
    box-sizing: border-box;
}

.close-btn:hover,
#blog-close:hover {
    background: #0066eb;
    color: #ffffff;
    transform: scale(1.05);
}

.write-one {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100% !important;
    box-sizing: border-box !important;
}

.write-one input {
    padding: 10px 14px;
    height: 42px;
    background: #f5f9ff;
    border: 1.5px solid #dfeaff;
    border-radius: 10px;
    outline: none;
    font-size: 15px;
    color: #1e293b;
    transition: 0.25s ease;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.write-one input:focus {
    border-color: #0066eb;
    box-shadow: 0 0 10px rgba(0, 102, 235, 0.35);
    background: #ffffff;
}

.write-icon-one {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.write-icon-one svg {
    color: #0066eb;
}

.write-two {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100% !important;
    box-sizing: border-box !important;
}

.write-two select {
    padding: 8px 14px;
    height: 42px;
    background: #f5f9ff;
    border: 1.5px solid #dfeaff;
    border-radius: 10px;
    outline: none;
    font-size: 15px;
    color: #1e293b;
    transition: 0.25s ease;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.write-two select:focus {
    border-color: #0066eb;
    box-shadow: 0 0 10px rgba(0, 102, 235, 0.35);
    background: #ffffff;
}

.write-icon-two {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.write-icon-two svg {
    color: #0066eb;
}

.write-three {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100% !important;
    box-sizing: border-box !important;
}

.write-three textarea {
    padding: 10px 14px;
    height: 80px;
    resize: none;
    background: #f5f9ff;
    border: 1.5px solid #dfeaff;
    border-radius: 10px;
    outline: none;
    font-size: 15px;
    color: #1e293b;
    transition: 0.25s ease;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.write-three textarea:focus {
    border-color: #0066eb;
    box-shadow: 0 0 10px rgba(0, 102, 235, 0.35);
    background: #ffffff;
}

.write-icon-three {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.write-icon-three svg {
    color: #0066eb;
}

.blog-btns {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
    width: 100% !important;
    box-sizing: border-box !important;
}

.btn-one {
    border: 2px solid #0066eb;
    border-radius: 5px;
    background: transparent;
    color: #0066eb;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    padding: 5px;
    font-size: 15px;
    font-weight: bold;
    gap: 10px;
    transition: 0.3s;
}

.btn-one:hover {
    background: #0066eb;
    box-shadow: 0 0 10px #0066eb;
    color: white;
}

.btn-two {
    border: 2px solid #0066eb;
    border-radius: 5px;
    background: #0066eb;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 150px;
    font-size: 15px;
    font-weight: bold;
    padding: 5px;
    transition: 0.3s;
}

.btn-two:hover {
    box-shadow: 0 0 10px #0066eb;
}



.result-main {
    padding: 100px 150px 0px 150px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}



.result-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-content button {
    width: 150px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #0066eb;
    color: white;
    font-size: 20px;
}




.result hr {
    opacity: unset;
    width: 70px;
    border: none;
    padding: 2px;
    background: #0066eb;
}

.result-card {
    border: 1px solid black;
    padding: 30px;
    height: 400px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}



/* Login/Signup Modal */
#MForm {
    display: none;
}

.wallpaper{
    width: 440px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 102, 235, 0.2);
    border-radius: 20px;
    position: fixed;
    padding: 22px 24px 20px;
    top: 50%;
    left: 50%;
    z-index: 9999;
    transform: translate(-50%, -50%);
    animation: zoomIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.wallpaper #sp-1,
.modal-logo-title #sp-1 {
    color: #0066eb;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.modal-header,
.wallpaper .logoo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 18px;
    position: relative;
}

.modal-logo-title,
.wallpaper .logoo .logoo-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-logo-title img,
.wallpaper .logoo img {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    object-fit: contain;
}

.modal-logo-title h2,
.modal-logo-title h1,
.wallpaper .logoo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.close-btn,
.wallpaper .close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0066eb;
    border-radius: 8px;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    color: #0066eb;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: all 0.25s ease;
    user-select: none;
    margin-left: auto;
}

.close-btn:hover,
.wallpaper .close-btn:hover {
    background: #0066eb;
    color: #ffffff;
    transform: scale(1.05);
}

.wallpaper span{
    font-size: 28px;
    text-align: center;
}

.wallpaper form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wallpaper .input-box{
    width: 100%;
    margin: 0;
    position: relative;
}

.input-box.password-box,
.password-box {
    position: relative;
    display: flex;
    align-items: center;
}

.input-box.password-box input,
.password-box input {
    padding-right: 42px !important;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    font-size: 16px;
    transition: color 0.2s ease, transform 0.15s ease;
    user-select: none;
    z-index: 5;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #0066eb;
    transform: translateY(-50%) scale(1.1);
}

.toggle-password:active {
    transform: translateY(-50%) scale(0.95);
}

.input-box input{
    height: 42px;
    width: 100%;
    background: #f5f9ff;
    color: #1e293b;
    border: 1.5px solid #dfeaff;
    border-radius: 10px;
    outline: none;
    font-size: 15px;
    padding: 10px 14px;
    transition: 0.25s ease;
}

.input-box input:focus {
    border-color: #0066eb;
    box-shadow: 0 0 10px rgba(0, 102, 235, 0.35);
    background: #ffffff;
}

.wallpaper .remamber{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    font-size: 14px;
    color: #3d3d3d;
}

.wallpaper .remamber a {
    color: #0066eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s ease;
}

.wallpaper .remamber a:hover {
    text-decoration: underline;
    color: #004dc7;
}

.remamber label input{
    accent-color: #0066eb;
    margin: 3px;
}

.wallpaper .btn{
    width: 100%;
    padding: 11px 20px;
    border: 2px solid #0066eb;
    border-radius: 8px;
    outline: none;
    background: #0066eb;
    font-size: 16px;
    font-weight: 600;
    color: white;
    transition: 0.3s;
    cursor: pointer;
}

.wallpaper .btn:hover{
    background-color: #0057d5;
    box-shadow: 0 0 10px rgba(0, 102, 235, 0.4);
    transform: translateY(-1px);
}

.wallpaper .form-switch {
    text-align: center;
    margin-top: 4px;
    font-size: 14px;
    color: #64748b;
}

.wallpaper .form-switch a {
    color: #0066eb;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
    transition: 0.2s ease;
}

.wallpaper .form-switch a:hover {
    text-decoration: underline;
    color: #004dc7;
}

.highlight-text {
    color: #0066eb !important;
}

/* Pagination Buttons Hover */
.pagination-controls .pg-btn,
.pg-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    outline: none;
}

.pagination-controls .pg-btn:hover,
.pg-btn:hover {
    border-color: #0066eb !important;
    color: #0066eb !important;
    background: #e0edff !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 14px rgba(0, 102, 235, 0.25) !important;
}

.pagination-controls .pg-btn:hover *,
.pg-btn:hover * {
    color: #0066eb !important;
}

.pagination-controls .pg-btn.active,
.pg-btn.active {
    background: #0066eb !important;
    border-color: #0066eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 102, 235, 0.35) !important;
}

.pagination-controls .pg-btn.active:hover,
.pg-btn.active:hover {
    background: #0052bd !important;
    border-color: #0052bd !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 102, 235, 0.45) !important;
}