/* This file contains the CSS styles for the Financial Standard News website */

/* Global Reset */
html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}
/* Root Style */
:root {
    --fs-main-color: #fcead9;
    --navbar-brand-color: black;
    --fs-card-color: #f9eada;
    --fs-icons-background: #fff;
}
/* Body */
body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    background: var(--fs-main-color);
    font-style: normal;
    visibility: inherit;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
/* Header */
header {
    height: 125px;
    padding: 0;
    margin: 0;
    top: 0;
    background-color: var(--fs-main-color);
    width: 100%;
    z-index: 99999;
    position: fixed;
}
/* Link Higlights */
a {
    text-decoration: none;
    background-color: transparent;
}
a:hover {
    color: #f41e1e;
    text-decoration: underline;
} 
a:not([href]):not([class]) {
    color: inherit;
    text-decoration: none;
}  
a:not([href]):not([class]):hover {
    color: inherit;
    text-decoration: none;
}
/* FS Navbar Brand */
.navbar-brand {
    position: relative;
    z-index: 99999;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}
.navbar-brand a {
    position: relative;
    z-index: 99999;
    overflow: visible;
    text-decoration-line: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.navbar-brand a img,
.fslogo-img {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
    display: block;
}
/* NAVBAR SEARCH BAR */
.navbar form {
    position: relative;
    display: inline-block;
    overflow: visible;
    border: none !important;
    box-shadow: none !important;
    border-bottom: none !important;
}
.navbar form button:hover {
    color: #070404;
    background: #fff;
}
.navbar form input[type="search"] {
    padding: 10px;
    border: none;
    border-radius: 10px;
    height: 25px;
    font-size: 14px;
    background-color: #fff;
    max-width: 90px;
    outline: none !important;
    box-shadow: none !important;
    border-bottom: none !important;
}
/* Live Search CSS */
#results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 1050;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.live-search-results .card {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.live-search-results .card:hover {
    background-color: #f0f0f0;
}
/* Main Content */
#main-content {
    padding: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 125px;
}
#main-content a {
    text-decoration: none;
    position: relative;
}
#main-content a:hover {
    color: #f41e1e;
}
/* Main Content Slide */
.carousel-caption {
    width:100%;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    color: var(--fs-main-color);
    background: rgba(0, 0, 0, 0.5);
}
.carousel-caption a:hover {
    color: #f41e1e;
}
.carousel-image {
    height: 415px;
    object-fit: cover;
}
@media (max-width: 768px) {
    .carousel-image {
        height: 350px;
    }
}
@media (max-width: 576px) {
    .carousel-image {
        height: 250px;
    }
}
.card {
    border: 1px solid rgb(215, 207, 207) !important;
    background: #f9eada;
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.card:hover, .card:focus-within {
    box-shadow: 0 16px 48px rgba(18, 27, 37, 0.22), 0 6px 24px rgba(3, 8, 12, 0.14);
    transform: translateY(-2px) scale(1.01);
}
.card-img-top, .card img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    margin-top: 0;
    display: block;
}
.image-fluid, .img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}
.card-body {
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.card-title, .card-text {
    color: #2d2d2d;
    margin-bottom: 0.5rem;
}

/* Make article link fill card and be responsive */
.card a.card-title, .card a.card-text {
    display: block;
    width: 100%;
    height: 100%;
    color: #2d2d2d;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    padding: 0.2rem 0;
    word-break: break-word;
}
.card a.card-title:hover, .card a.card-text:hover {
    color:  #f41e1e;
}
@media (max-width: 991.98px) {
    .card-body {
        padding: 1rem 0.75rem;
    }
}
@media (max-width: 767.98px) {
    .card {
        border-radius: 0.75rem;
        }
    .card-body {
        padding: 0.75rem 0.5rem;
        }
    .card-title, .card-text {
        font-size: 0.98rem;
        }
    .card .btn {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }
}
/* Tan-panel */
.nav-tabs .nav-link.active {
    background-color: var(--fs-card-color);
    position: relative;
}
/* Section Titles */
.section-title {
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.section-title h5, .section-title h4,
.section-title a {
    position: relative;
    cursor: pointer;
    color: #00838f; /* Changed to match privacy and terms file */
}
.section-title::before,
.section-title::after {
    content: none;
}
.section-title h5, .section-title h4,
.section-title a {
    position: relative;
    cursor: pointer;
    margin: 0;
}
@media (max-width: 991.98px) {
    .section-title {
        padding: 1rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        font-size: 1.3rem;
    }
    .section-title h5, .section-title h4 {
        font-size: 1.3rem;
    }
}
@media (max-width: 767.98px) {
    .section-title {
        padding: 0.75rem 0.5rem;
        border-radius: 0.75rem;
        font-size: 1.1rem;
    }
    .section-title h5, .section-title h4 {
        font-size: 1.1rem;
    }
}
.section-title h5,
.section-title a {
    position: relative;
    cursor: pointer;
}
.section-title a:hover {
     cursor: pointer;
}
/* Socialicons */
.socialicons a {
    position: relative;
    font-size: 16px;
    color: var(--fs-icons-background);
    padding: 0 4px;
}
.socialicons i {
    font-size: 16px;
    text-align: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    justify-content: center;
    line-height: 38px;
}
.socialicons a i:hover {
    color: var(--navbar-brand-color);
    background-color: var(--fs-icons-background);
}
/* Socialicons Color */
.facebook-bg {
    background-color: #3b5998;
}
.whatsapp-bg {
    background-color: #25d366;
}
.instagram-bg {
    background-color: #e1306c;
}
.twitter-bg {
    font-family: sans-serif;
    background-color: #141517;
    color: #fff;
}
.twitter-bg::before{
    content:"𝕏";
    font-size:1.2em;
}
/* Navbar */
.navbar {
    padding: 5px 5px;
    position: relative;
    overflow: visible;
    width: 100%;
}
/* DROPDOWN MENU */
.sidebar-nav {
    padding: 9px 0;
}
.dropdown-menu {
  border-radius:0;
  background: #fcead9;
}
.navbar .dropdown ul li a:hover {
   background-color: #fff;
   color: var(--navbar-brand-color);
}
.nav-tabs .dropdown-menu,
.nav-pills .dropdown-menu,
.navbar .dropdown-menu {
   margin-top: 0
}
.dropdown:hover > .dropdown-menu {
   display: block;
}
ul.dropdown-menu li {
   height: 35px;
   line-height: 35px;
}
/* Table */
table {
    border-collapse: collapse;
    position: relative;
    width: 100%;
}
th {
    text-align: inherit;
}
/* About Us */
.about_icon i {
    font-size: 22px;
    height: 65px;
    width: 65px;
    line-height: 45px;
    display: inline-block;
    background: #fff;
    border-radius: 35px;
    color: #373636;
    box-shadow: 0 6px 1px -1px rgba(108, 107, 107, 0.5);
}
.about_content_box_all {
    padding: 28px;
}
/* Go to top button */
#goTopBtn {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 99;
  font-size: 24px;
  border: none;
  outline: none;
  background-color: #00838f;
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}
#goTopBtn:hover {
  background-color: #005f5f;
}
/* Responsive */
@media only screen and (max-width: 600px) {
    .card {
        margin: 0;
    }
    .navbar {
        position: relative;
    }
    .navbar-brand {
        top: 0;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        align-content: center;
        justify-content: center;
        padding: 0;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .navbar-brand a img {
        width: 80vw;
        max-width: 180px;
        height: auto;
        margin: 0 auto;
        padding: 0;
        object-fit: contain;
        display: block;
    }
    .story h3 {
        font-size: 24px;
        margin-bottom: 12px;
        margin-top: 12px;
    }
    .socialicons {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    .navbar form input[type="search"] {
        max-width: 150px;
        margin-right: 8px;
    }
    .about_icon i {
        font-size: 18px;
        height: 45px;
        width: 45px;
    }
    .about_content_box_all {
        padding: 10px;
    }
    .content {
        margin-bottom: 10px;
        margin-top: 10px;
    }
    .section-title h5,
    .section-title a {
        font-size: 18px;
    }
    #publication iframe {
        width: 50%;
        height: inherit;
    }
    body {
        font-size: 14px;
        padding: 0;
        margin: 0;
        align-items: center;
        justify-content: center;
    }
}
@media only screen and (min-width: 768px) {
    .card {
        margin: 0;
        margin: 0;
    }
    .navbar {
        position: relative;
    }
    .navbar-brand {
        top: 0;
        left: 0;
        display: block;
        text-align: center;
        align-content: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    .navbar-brand a img {
        width: 80vw;
        max-width: 220px;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    .story h3 {
        font-size: 25px;
        margin-bottom: 12px;
        margin-top: 12px;
    }
    .socialicons {
      display: block;
      position: relative;
      overflow: hidden;
    }
    .socialicons li {
      display: inline-block;
      margin: 0 10px;
    }
    .socialicons li a {
      padding: 10px;
    }
    .navbar form input[type="search"] {
        max-width: 150px;
        margin-right: 8px;
    }
    .about_icon i {
        font-size: 18px;
        height: 45px;
        width: 45px;
    }
    .about_content_box_all {
        padding: 10px;
    }
    .content {
        margin-bottom: 10px;
        margin-top: 10px;
    }
    .section-title h5 {
        font-size: 14px;
    }
    body {
        font-size: 14px;
    }
}
@media only screen and (min-width: 992px) {
    .card {
        margin: 0;
    }
    .navbar-brand {
        left: 0;
        display: block;
        text-align: center;
        align-content: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    .navbar-brand a img {
        width: 80vw;
        max-width: 280px;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    .socialicons {
      position: relative;
      overflow: hidden;
    }
    .socialicons li {
      display: inline-block;
      margin: 0 10px;
    }
    .socialicons li a {
      padding: 10px;
    }
    .navbar form input[type="search"] {
        max-width: 150px;
        margin-right: 8px;
    }
    .about_icon i {
        font-size: 18px;
        height: 45px;
        width: 45px;
    }
    .about_content_box_all {
        padding: 10px;
    }
    .content {
        margin-bottom: 10px;
        margin-top: 10px;
    }
    .section-title h5,
    .section-title a {
        font-size: 18px;
    }
    body {
        font-size: 16px;
        padding: 0;
        margin: 0;
        align-items: center;
        justify-content: center;
    }
}
/* Footer Sction */
footer {
    margin-top: 40px;
    background-color: #141517; 
    position: relative;
}
footer ul {
    margin: 0px;
    padding: 0px;
}
.footer-text p {
    margin-bottom: 14px;
    font-size: 14px;
    color: #7e7e7e;
    line-height: 28px;
}
/* FOOTER SOCIAL ICONS */
.footer-social-icon a i:hover {
    color:  #141517;
    background-color: #fff;
}
/* FOOTER WIDGET */
.footer-heading h4 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 40px;
    position: relative;
}
.footer-heading h4::before {
    content: "";
    position: absolute;
    bottom: -15px;
    height: 2px;
    width: 60px;
    background: #fcead9;
}
/* Footer-Text-P-Span */
.footer-text p span {
    color: var(--fs-main-color);
    position: relative;
    font-weight: bold;
}
.footer-link ul li {
    display: block;
    float: left;
    width: 50%;
    margin-bottom: 12px;
}
.footer-link ul li a:hover {
    text-decoration-line: underline;
    text-decoration-color: #fcead9;
    color:  #fcead9;
}
.footer-link ul li a {
    color: #878787;
}
/* SUBSCRITION FORM */
.subscribe form {
    position: relative;
    overflow: hidden;
}
.subscribe form input {
    width: 100%;
    padding: 14px 28px;
    background: #2e2e2e;
    border: 1px solid #2e2e2e;
    color: #fff;
}
.subscribe form button {
    position: absolute;
    right: 0;
    background: #fcead9;
    padding: 10px 15px;
    border: 1px solid #fcead9;
}
.subscribe-form button i {
    color: var(--navbar-brand-color);
    font-size: 22px;
    transform: rotate(-6deg);
}
/* COPYRIGHT */
.copyright {
    background-color: #202020;
    padding: 25px 0;
}
.copyright-text p {
    margin: 0;
    font-size: 14px;
    color: #878787;
}
.copyright-text p a {
    color: var(--fs-main-color);
}
.copyright-text p a:hover {
    text-decoration-line: underline;
}
/* Footer-Menu */
.footer-menu a {
    display: inline-block;
    margin-left: 20px;
    margin-right: 0;
    color: #7e7e7e !important;
    font-size: 13px;
}
.footer-menu a:hover,
.footer-menu a:focus {
    color:  #fcead9;
    text-decoration: underline;
    outline: none;
}
/* Responsive footer */
@media only screen and (max-width: 768px) {
    .socialicons {
        margin: 0;
        display: block;
        position: relative;
        overflow: hidden;
    }
    .socialicons li {
        display: inline-block;
        margin: 0 10px;
    }
    .socialicons li a {
        padding: 10px;
    }
    .copyright {
        padding: 15px 0;
    }
    .subscribe-form {
        width: 100%;
    }
    .subscribe-form button {
        position: relative;
        right: 0;
    }
    .footer-menu {
        margin-top: 20px;
    }
    .footer-menu a {
        margin-left: 10px;
    }
}
@media (max-width: 480px) {
    .footer-menu a {
        margin-left: 5px;
    }
}
@media only screen and (max-width: 600px) {
    .footer-menu a {
        margin-left: 5px;
    }
}
@media only screen and (min-width: 768px) {
    .footer-menu a {
        margin-left: 5px;
    }
}

/* CODE ADDED FOR READ ARTICLES */
button {
    font-family: inherit;
    cursor: pointer;
    background: var(--fs-card-color);
    color: #000000;
    border: 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
}
button:hover {
    color: #AB8D8D;
}
  
.main-container,
.modal-window,
.modal-container {
    transition: 0.3s;
}
  
.modal-window {
    position: fixed;
    top: 50%;
    right: -300px;
    transform: translate(50%, -50%);
    background: #ffffff;
    color: #000000;
    padding: 48px 40px;
    width: 600px;
    height: 60%;
    border-radius: 12px;
    z-index: 1;
    overflow: auto;
}
  
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    background: rgba(0, 0, 0, 0.5);
}
  
body.open-modal .modal-container {
    visibility: visible;
    opacity: 1;
}
  
body.open-modal .card-container {
    animation: card-container-in 1s both;
}
  
body.open-modal > .main-container {
    scale: 0.75;
}
.story h3 {
    font-size: 24px;
}
@keyframes modal-window-in {
    0%, 50% {
      width: 118px;
      border-radius: 50%;
    }
    55%, 100% {
      right: 50%;
    }
    60% {
      width: 300px;
      border-radius: 12px;
    }
    75% {
      transform: translate(50%, -50%);
    }
}

/* Responsive: max-width 480px */
@media only screen and (max-width: 480px) {
    #main-content {
        padding: 0;
        margin-top: 140px;
    }
    .articles-container {
        flex-direction: column;
        padding: 0;
    }
    .navbar-brand a img {
        width: 100px;
        max-width: 140px;
        height: 35px;
        display: block;
        margin: 0 auto;
        padding: 0;
        object-fit: contain;
    }
    h1, h2, h3, h4, h5, h6 {
        font-size: 1.1em;
    }
    .story h3 {
        font-size: 20px;
        margin-bottom: 15px;
        margin-top: 15px;
    }
    body {
        font-size: 14px;
    }
    .article_card, .card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 4px 0;
        padding: 0;
        height: auto;
    }
}

/* Responsive: max-width 1080px */
@media only screen and (max-width: 1080px) {
    #main-content {
        padding: 10px;
    }
    .story h3 {
        font-size: 22px;
    }
    .articles-container {
        flex-direction: column;
        padding: 6px;
    }
    .article_card, .card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 6px 0;
        padding: 0;
        height: auto;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .card img, .article_card img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: cover;
        border-radius: 5px;
    }
    .navbar-brand a img {
        width: 80vw;
        max-width: 180px;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    .interaction {
        flex-direction: column;
        gap: 8px;
    }
    table, th, td {
        font-size: 0.95em;
        word-break: break-word;
    }
    .about_icon i {
        font-size: 18px;
        height: 45px;
        width: 45px;
    }
    .about_content_box_all {
        padding: 10px;
    }
    .content {
        margin-bottom: 10px;
        margin-top: 10px;
    }
    .footer-heading h4 {
        font-size: 1.1em;
    }
    .footer-text p, .footer-link ul li a, .footer-menu a {
        font-size: 0.95em;
    }
    .subscribe form input {
        font-size: 1em;
    }
    .modal-window {
        width: 95vw;
        min-width: 0;
        max-width: 100vw;
        padding: 20px 10px;
        font-size: 1em;
    }
}

/* Responsive: max-width 600px */
@media only screen and (max-width: 600px) {
    .navbar-brand a img {
        width: 95vw;
        max-width: 360px;
        height: auto;
        margin: 0 auto;
        padding: 0;
        object-fit: contain;
        display: block;
    }
    header {
        height: 90px;
    }
    #main-content {
        margin-top: 90px;
    }
    .card-img-top, .card img {
        filter: brightness(1.15);
    }
    .card {
        border-radius: 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transition: box-shadow 0.3s ease, transform 0.3s ease;
    }
    .card:hover, .card:focus-within {
        box-shadow: 0 24px 72px rgba(18, 27, 37, 0.3), 0 12px 48px rgba(3, 8, 12, 0.2);
        transform: translateY(-6px) scale(1.03);
    }
}

/* Responsive: min-width 768px */
@media only screen and (min-width: 768px) {
    .navbar-brand a img {
        width: 80vw;
        max-width: 220px;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}

/* Responsive: min-width 992px */
@media only screen and (min-width: 992px) {
    .navbar-brand a img {
        width: 80vw;
        max-width: 400px;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}
