/* ==========================================================================
   BRAND COLORS & UTILITIES
   ========================================================================== */
.is-primary-bg {
    background-color: #181923 !important;
}

.is-custom-red-bg {
    background-color: #f20404 !important;
}

.security-block {
    color: white !important;
    background-image: url('../images/ronintell-security-bg.jpg');
    background-size: cover;
    text-align: center;
    background-repeat: no-repeat;
    background-attachment: local;
    background-position: center center;
    min-height: 600px;
}

.about-us-block {
    color: white !important;
    background-image: url('../images/about-us-ronintell.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: local;
    background-position: center center;
    min-height: 400px;
}

.contacts-block {
    color: white !important;
    background-image: url('../images/ronintell-contacts-bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: local;
    background-position: center center;
    min-height: 400px;
}

.accent-block {
    width: 200px;
    background-color: #f20404;
    color: white;
}

.main-news-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.similar-news-image-wrapper {
    height: 150px;
    min-height: 150px;
    overflow: hidden;
    position: relative;
}

.similar-news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-image-wrapper {
    max-width: 200px;
    max-height: 140px;
    overflow: hidden;
    position: relative;
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.share-button {
    width: 100px;
}

.has-dark-background {
    background-color: #081829 !important;
}

.has-light-gray-background {
    background-color: #f6f2ed !important;
}

.has-text-light {
    color: rgba(255, 255, 255, 0.75) !important;
}

.active-block-mark {
    border-left: 4px solid #f20404 !important;
    padding-left: 1rem !important;
}

.passive-block-mark {
    border-left: 4px solid white !important;
    padding-left: 1rem !important;
}


.flip-card {
    margin-left: auto;
    margin-right: auto;
    background-color: transparent;
    width: 300px;
    height: 300px;
    border: 1px solid #f1f1f1;
    perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}

.has-background-dark-blue {
    background-color: #181923 !important;
}

.flip-card-front {
  background-color: #181923;
  color: black;
}

.flip-card-back {
  background-color: white;
  color: black;
  border: 1px solid lightgray;
  transform: rotateY(180deg);
}

.flip-card-title {
    position: absolute;
    bottom: 10px;
    color: white;
}

.has-text-dark {
    color: rgba(18, 19, 23, 1) !important;
}

.has-text-color-accent {
    color: #f20404 !important;
}

.has-background-accent {
    background-color: #f20404 !important;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    gap: 15px;
    user-select: none;
}

.has-background-gray {
    background-color: #f2f3f4 !important;
}

.marque-container {
    width: 100%;
    overflow: hidden;
    background-color: #00192b;
}

.is-custom-red {
    color: #f20404 !important;
}

.main-news-image {
    max-width: 200px;
}

.news-link:hover {
    color: #f20404 !important;
}

.narrow-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.has-sand-colored-background {
    background-color: #f7f3ee !important;
}

/* ==========================================================================
   LAYOUT & NAVIGATION SETUP
   ========================================================================== */
.navbar-top-content {
    font-size: 0.9rem;
    width: 100%;
}

#sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease-in-out;
}

.sticky-nav-hidden {
    transform: translateY(-100%);
}

.sticky-nav-visible {
    transform: translateY(0);
}

.footer-bg {
    background: linear-gradient(rgba(18, 20, 32, 0.85), rgba(18, 20, 32, 0.95)),
    url('../img/par-mums-ronintell.jpg') no-repeat center center;
    background-size: cover;
}

.navbar-item:hover,
.navbar-link:hover {
    background-color: transparent !important;
}

.navbar-item.has-dropdown:hover .navbar-link {
    opacity: 1 !important;
}

.navbar-item.dropdown.is-active .dropdown-menu {
    display: block !important;
    z-index: 9999 !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
}

#search-dropdown, #sticky-search-dropdown {
    position: relative !important;
    z-index: 1000 !important;
}

/* ==========================================================================
   COMPONENTS & ANIMATIONS
   ========================================================================== */
.is-custom-jump-animation {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.is-custom-jump-animation:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07) !important;
}

.is-custom-animated-button {
    background-color: #f20404 !important;
    color: #ffffff !important;
    border: none !important;
    transition: background-color 0.2s ease-in-out;
}

.is-custom-animated-button:hover {
    background-color: #222222 !important;
    color: #ffffff !important;
}

.centered-navbar-items {
    margin-left: auto;
    margin-right: auto;
}

.is-custom-animated-white-red {
    color: #ffffff !important;
    transition: color 0.2s ease-in-out;
}

.is-custom-animated-white-red:hover {
    color: #f20404 !important;
}

.is-custom-animated-black-red {
    color: #000000 !important;
    transition: color 0.2s ease-in-out;
}

.is-custom-animated-black-red:hover {
    color: #f20404 !important;
}

/* ==========================================================================
   index.html
   ========================================================================== */
.fading-line {
    display: block;
    height: 2px;
    width: 1000px;
    max-width: 95%;
    margin: 20px auto;
    background-color: #b5b5b5;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* General service card styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 20px;
}

.service-card i {
    font-size: 3rem;
    color: #f20404;
    margin-bottom: 15px;
}

.section-main-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #f20404;
    padding-top: 40px;
}

.process-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    gap: 15px;
}

.process-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: white;
    /* display: inline-block; */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 10px;
}

/*.process-circle::hover {*/
/*    background-color: #f20404;*/
/*    color: blue;*/
/*    !* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);*/
/*    transform: translateY(-4px);*/
/*    transition: all 0.3s ease-in-out; *!*/
/*}*/
.flip-card-button {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
}

.marquee-track {
    /* position: absolute; */
    bottom: 0;
    left: 0;
    width: 5850px;
    background-color: #00192b;
    color: white;

    display: flex;
    gap: 3rem;
    animation: marquee-scroll 90s linear infinite;
    white-space: nowrap;
    will-change: transform;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
} 

.marquee-item {
    /* display: inline-block;
    padding: 0 2rem;
    font-size: 1.2rem;
    white-space: nowrap; */

    text-transform: uppercase;
    color: white;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-definition::before {
    content: "•";
    margin-right: 8px;
    color: #f20404;
    font-size: 1.5rem;
}

.marquee-item::before {
    content: "•";
    color: #f20404;
    font-size: 1.5rem;
}

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* color: #f20404;
    font-size: 1.5rem;
} */

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 20px;
    }

    .service-card i {
        margin-bottom: 0;
        font-size: 2.5rem;
    }

    .process-grid {
        flex-direction: column;
    }

    .process-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

/* ==========================================================================
   contact.html
   ========================================================================== */

.contact-main-title,
.contact-section-title {
    color: #181923;
}

.contact-subtitle {
    line-height: 1.6;
}

.contact-right-col {
    border-left: 1px solid #ededed;
}

.kontakt-card:focus,
.kontakt-card:active {
    outline: none !important;
    border-color: #f20404 !important;
    box-shadow: none !important;
}

.kontakt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07) !important;
    border: 1px solid #f20404 !important;
}

/* Mobile optimization */
@media screen and (max-width: 768px) {
    /* Section and container */
    .contact-page-container .contact-section {
        padding: 1rem 0.5rem !important;
    }

    .contact-page-container .white-contact-block {
        width: 100% !important;
        padding: 1.25rem !important;
        margin: 0 auto !important;
    }

    /* Title */
    .contact-page-container .contact-main-title {
        font-size: 1.5rem !important;
        word-break: break-word;
    }

    /* Column layout */
    .contact-page-container .columns {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Right column */
    .contact-page-container .contact-right-col {
        border-left: none !important;
        margin-top: 1.5rem !important;
        padding-top: 1.5rem !important;
        border-top: 1px solid #ededed !important;
    }
}

/* ==========================================================================
   about_us.html
   ========================================================================== */
.contact-divider {
    width: 2px;
    height: 150px;
    background-color: #ededed;
    margin: 0 2rem;
}

/* Standard desktop view */
.mission-content {
    padding-left: 6rem;
    padding-right: 6rem;
}

.partner-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.partner-card .is-size-7 {
    flex-grow: 1 !important;
}

/* Align logo and icon to bottom */
.partner-card img[src*="logo"],
.partner-card p:last-child {
    margin-top: auto !important;
}

/* Mobile optimization */
@media screen and (max-width: 768px) {
    /* Heading on mobile */
    .about-mission-section .mission-head-text {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
    }

    /* Main text on mobile */
    .about-mission-section .mission-main-text {
        font-size: 0.95rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        line-height: 1.5;
        text-align: justify;
    }

    /* Columns vertical view */
    .contact-section-wrapper .columns.is-vcentered {
        flex-direction: column !important;
        text-align: center;
    }

    /* Hide divider */
    .contact-section-wrapper .contact-divider {
        display: none !important;
    }

    /* Add margins to prevent overlapping */
    .contact-section-wrapper .column {
        margin-bottom: 1.5rem !important;
    }

    /* Compact title */
    .contact-section-wrapper .title.is-3 {
        font-size: 1.5rem !important;
    }

    /* Reduce padding */
    .contact-section-wrapper .section {
        padding: 1rem 0.5rem !important;
    }
}

/* ==========================================================================
   base.html
   ========================================================================== */

/* Mobile optimization */
@media screen and (max-width: 1023px) {
    #full-header .navbar > .container,
    #sticky-header .navbar > .container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    #full-header .navbar-brand,
    #sticky-header .navbar-brand {
        flex: 0 1 auto !important;
        margin-right: auto !important;
    }

    #full-header .navbar-item,
    #sticky-header .navbar-item {
        display: flex !important;
        padding: 0 0.25rem !important;
        margin: 0 !important;
    }

    #full-header .navbar-item:last-child,
    #sticky-header .navbar-item:last-child {
        display: flex !important;
    }

    #full-header .navbar-menu,
    #sticky-header .navbar-menu {
        display: none !important;
    }

    .is-custom-red-bg .is-flex {
        justify-content: center !important;
        text-align: center !important;
    }
}

.is-nav-active {
    color: #f20404 !important;
}

.is-nav-active-mobile {
    color: lightgray !important;
}
