/* Amora Media Custom Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #d63384;
    /* Amora Pink/Redish */
    --dark-bg: #212529;
    --light-bg: #f8f9fa;
    --top-bar-bg: #111;
    --top-bar-text: #ccc;

    /* Global Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --text-color: #333;
    --text-color-muted: #444;

    /* Global Colors */
    --body-bg: #f4f6f9;
    --white: #ffffff;
    --btn-hover: #0b5ed7;
    --marquee-bg: #00ace6;
    --marquee-text: #ff9900;
    --nav-bg: rgba(255, 255, 255, 0.95);

    /* Layout & Spacing */
    --border-radius-card: 12px;
    --border-radius-btn: 50px;
}

/* Global Icon Color */
i.bi {
    color: #ff9900;
}

body {
    font-family: var(--font-primary);
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background-color: var(--top-bar-bg);
    color: var(--top-bar-text);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-left .current-date {
    background: transparent;
    padding: 0;
    margin: 0;
    color: var(--white);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 1.5rem;
}

.top-contact-info a {
    color: #cbd5e0;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.top-contact-info i {
    color: #ff9900;
    /* Use brand orange for icons */
}

.top-contact-info a:hover {
    color: #ffffff;
}

.language-links a {
    color: var(--top-bar-text);
    text-decoration: none;
    font-weight: 600;
    opacity: 0.8;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.language-links a:hover {
    color: #ff9900;
    transform: translateY(-2px);
    opacity: 1;
}

.language-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff9900;
    transition: width 0.3s ease;
}

.language-links a:hover::after {
    width: 100%;
}

.top-bar .social-links a {
    color: var(--top-bar-text);
    text-decoration: none;
    transition: color 0.3s;
}

/* Header Main Branding */
.header-main {
    background-color: var(--white);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    min-height: 120px;
    /* Reduced vertical space */
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.brand-flex-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo-large {
    height: 85px;
    /* Larger logo */
    width: auto;
    object-fit: contain;
}

.brand-text-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 2.3rem;
    /* H1/H2 feeling */
    line-height: 1;
    letter-spacing: -1px;
    margin: 0 !important;
}

.brand-amora {
    color: #003366;
    /* Deep Blue from Logo */
}

.brand-media {
    color: #000000;
    /* Solid Black */
}

.brand-slogan {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.slogan-text {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #333;
    white-space: nowrap;
}

.of-blue {
    color: #0033ff;
    /* Vivid Blue for "OF" */
}

.slogan-line {
    height: 1.5px;
    width: 20px;
    background-color: #ff9900;
    /* Brand Orange */
    display: inline-block;
}

/* Custom Flier Slider (130px Height) */
.custom-flier-slider {
    height: 130px;
    width: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
    background-color: #333;
    /* Dark background to match promo */
    border: none;
    cursor: pointer;
    border-radius: 8px;
    /* specific radius */
}

.flier-track {
    width: 100%;
    height: 100%;
}

.custom-flier-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    background-color: #000;
}

.custom-flier-item.active {
    opacity: 1;
    z-index: 2;
}

.banner-flier-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.flier-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    /* Flex required for org logo alignment */
    align-items: center;
    background: rgba(0, 0, 0, 0.55);
}

.flier-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    z-index: 3;
}

/* Typewriter Cursor Animation */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: #ff9900;
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

.promo-text-container {
    display: inline-block;
    white-space: nowrap;
    /* Keep on one line initially, wrap if needed but typewriter usually implies flow */
    overflow: hidden;
}

.flier-org-logo img {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.flier-org-logo {
    flex-shrink: 0;
    margin-right: 20px;
}

.pulse-logo {
    height: 50px;
    width: 50px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 5px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: shrinkExpand 2s infinite ease-in-out;
}

@keyframes shrinkExpand {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.85);
    }
}

.flier-promo-expand {
    color: white;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: textExpand 5s infinite;
}

@keyframes textExpand {
    0% {
        width: 0;
        opacity: 0;
    }

    5% {
        width: 0;
        opacity: 1;
    }

    30%,
    100% {
        width: 100%;
        opacity: 1;
    }
}

.promo-title {
    color: #ff9900;
    margin-right: 10px;
    font-size: 1.1rem;
}

.promo-body {
    font-size: 0.95rem;
    font-weight: 600;
}

.banner-flier-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    /* Removed brightness filter */
}

/* Navbar Base */
.navbar {
    background-color: #003366 !important;
    /* Deep Professional Blue */
    transition: all 0.4s ease;
    border-bottom: 3px solid #ff9900;
    padding: 0.4rem 0;
}

/* Remove scrolled color change to keep it blue */
.navbar.scrolled {
    background-color: #003366 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.7rem 1.2rem !important;
    position: relative;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: #ff9900 !important;
}

.navbar .nav-link.active {
    color: #ff9900 !important;
}

/* Remove Dropdown Sign (Caret) */
.dropdown-toggle::after {
    display: none !important;
}

/* Underline Animation */
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 1.2rem;
    width: 0;
    height: 2px;
    background-color: #ff9900;
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after {
    width: calc(100% - 2.4rem);
}

.navbar .nav-link.active::after {
    width: calc(100% - 2.4rem);
    background-color: #ff9900;
}

/* Hover Dropdown Logic */
@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        background-color: #003366;
        /* Match navbar */
        border: none;
        border-top: 3px solid #ff9900;
        border-radius: 0 0 8px 8px;
        padding: 0.5rem 0;
        min-width: 200px;
    }

    .navbar .dropdown-item {
        color: #ffffff !important;
        font-weight: 500;
        padding: 0.6rem 1.5rem;
        transition: all 0.2s ease;
    }

    .navbar .dropdown-item:hover {
        background-color: rgba(255, 153, 0, 0.1);
        color: #ff9900 !important;
        padding-left: 1.8rem;
        /* Slight shift animation */
    }

    .navbar .dropdown-item.active {
        background-color: rgba(255, 153, 0, 0.1);
        color: #ff9900 !important;
        padding-left: 1.8rem;
    }
}

/* Background highlight on hover - made more opaque */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(13, 110, 253, 0.12));
    /* More visible highlight */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    opacity: 1;
}

/* Marquee */
.news-marquee {
    /*background-color: var(--accent-color);*/
    background-color: var(--marquee-bg) var(--accent-color);
    color: var(--marquee-text);
    padding: 10px 0;
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.box {
    width: 150px;
    height: 150px;
    background: tomato;
    animation: move 3s linear infinite;
}

.box:hover {
    animation-play-state: paused;
}

@keyframes move {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(300px);
    }
}

/* Update for began here*/

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes move {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(300px);
    }
}

/*end*/
.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* Carousel */
#homeCarousel {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

#homeCarousel .carousel-item {
    height: calc(85vh - 30px);
    overflow: hidden;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transform: scale(1);
    transition: transform 10s ease;
}

/* Image Animation on Active */
.carousel-item.active img {
    animation: zoomOutEffect 10s ease-out forwards;
}

.carousel-caption {
    bottom: 30%;
    z-index: 10;
    opacity: 0;
    /* Hidden initially */
}

/* Text Animation on Active */
.carousel-item.active .carousel-caption {
    animation: emergeUp 1.2s ease-out forwards;
    animation-delay: 0.5s;
    /* Wait for image to start */
}

.carousel-caption h5 {
    font-size: 4rem;
    /* Larger text */
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
    transform: translateY(30px);
    opacity: 0;
}

.carousel-item.active .carousel-caption h5 {
    animation: fadeInUp 1s ease-out forwards 0.5s;
}

.carousel-caption p {
    font-size: 1.5rem;
    transform: translateY(30px);
    opacity: 0;
}

.carousel-item.active .carousel-caption p {
    animation: fadeInUp 1s ease-out forwards 0.8s;
}

.carousel-caption .btn {
    transform: translateY(30px);
    opacity: 0;
}

.carousel-item.active .carousel-caption .btn {
    animation: fadeInUp 1s ease-out forwards 1.1s;
}

/* Keyframes */
@keyframes zoomOutEffect {
    from {
        transform: scale(1.2);
    }

    to {
        transform: scale(1);
    }
}

@keyframes emergeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Text Clamping */
.text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Styling */
.sidebar-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 15px;
}

.sidebar-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.list-group-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 10px !important;
    /* Start with some padding */
    border-left: 3px solid transparent;
    /* Invisible border for animation */
    margin-bottom: 5px;
}

.list-group-item:hover {
    padding-left: 20px !important;
    background-color: rgba(13, 110, 253, 0.05) !important;
    /* Subtle tint */
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    /* Colored border appears */
}

/* Mixed Grid Styling */
.news-card-img-large {
    height: 300px;
    object-fit: cover;
}

.news-card-img-medium {
    height: 250px;
    object-fit: cover;
}

.news-card-img-std {
    height: 200px;
    object-fit: cover;
}

.news-card-title-large {
    font-size: 1.5rem;
}

/* Service Cards */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    border-radius: 16px;
    position: relative;
    overflow: visible;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

/* Icon Wrapper and Gradient Background */
.service-icon-wrapper {
    display: inline-block;
}

.service-icon-gradient {
    width: 64px;
    height: 64px;
    background: #ff9900;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon-gradient {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
}

.service-icon-gradient i {
    font-size: 2rem;
    color: white !important;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-gradient i {
    transform: scale(1.1);
}

.service-card .card-title {
    color: var(--text-color);
    transition: color 0.3s ease;
    font-size: 1.25rem;
}

.service-card:hover .card-title {
    color: var(--primary-color);
}

.service-card .card-text {
    line-height: 1.6;
    color: #6b7280;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    background: var(--white);
    border: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img-top {
    transform: scale(1.08);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    border-radius: var(--border-radius-btn);
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

/* Partners Marquee Area */
.partners-marquee-container {
    overflow: hidden;
    padding: 30px 0;
    position: relative;
    background: var(--white);
}

.partners-track {
    display: flex;
    width: calc(300px * 10);
    /* Adjust based on card width and count */
    animation: scroll 40s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-card {
    width: 300px;
    margin: 0 15px;
    flex-shrink: 0;
    border-radius: 16px;
    background: #fdfdfd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.partner-icon-gradient {
    width: 50px;
    height: 50px;
    background: #ff9900;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.partner-icon-gradient i {
    font-size: 1.5rem;
    color: white !important;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-300px * 5));
    }

    /* Adjust based on half total width */
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: #ccc;
    padding: 60px 0 20px;
}

footer h5 {
    color: white;
    margin-bottom: 20px;
}

footer a:hover {
    text-decoration: none !important;
    color: var(--accent-color) !important;
}

/* Footer Premium */
.footer-premium {
    background-color: #0d1117;
    /* Deep Navy Dark */
    color: #cbd5e0;
    font-family: var(--font-primary);
}

.footer-text-muted {
    color: #a0aec0 !important;
    transition: color 0.3s ease;
}

.footer-text-muted:hover {
    color: #ffffff !important;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 50px;
    width: auto;
    background: white;
    padding: 3px;
    border-radius: 8px;
}

.brand-amora-light {
    color: #ffffff;
}

.brand-media-light {
    color: #ff9900;
    /* Use orange for accent in dark mode */
}

.footer-slogan {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #a0aec0;
}

.text-primary-light {
    color: #0088ff;
}

.footer-heading {
    position: relative;
    font-weight: 700;
    color: #ffffff;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #ff9900;
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-list a:hover {
    color: #ff9900;
    transform: translateX(5px);
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-contact-list i {
    color: #ff9900;
    margin-top: 4px;
}

.footer-contact-list a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-list a:hover {
    color: #ffffff;
}

.footer-social-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-icon:hover {
    background: #ff9900;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.3);
}

.footer-bottom {
    border-color: rgba(255, 255, 255, 0.05) !important;
}