body {
    font-family: 'Kanit', sans-serif;
    color: #fff;
    background-color: #000;
}

.hero-section {
    min-height: 75vh;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
    flex-direction: column;
}

.hero-section h1 {
    font-size: clamp(2.2rem, 8vw, 8rem);
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(to right, #FF416C, #8A2387);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section .btn {
    background-color: #fff;
    color: #000;
    font-size: clamp(1rem, 3vw, 1.8rem);
    font-weight: 600;
    min-height: 44px;
}

.btn {
    background-color: #fff;
    color: #000;
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    font-weight: 600;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background-color: aquamarine;
    color: #000;
}

.title{
    text-align: center;
    margin: 20px;
    font-size: clamp(1.6rem, 5vw, 3rem);
    font-weight: 700;
}
.services {
    /* background-color: #FFFFFF; */
    padding: 50px 0;
}

.service-card {
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    /* background-color: #FFFFFF; */
    box-shadow: 0 4px 8px rgba(71, 215, 208, 0.2);
    border-radius: 5px; /* Optional: Add some border radius for a smoother look */
}

.service-card:hover {
    /* transform: translateY(-10px); */
    box-shadow: 0 4px 8px rgba(239, 120, 225, 0.3);
}

.service-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #FF416C, #8A2387); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.service-card p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.service-card .btn {
    color: #000;
    background-color: #fff;
}

.service-card .btn:hover {
    color: #000;
    background-color: aquamarine;
}

.alliance-card {
    width: 24%;
    /*  margin-bottom: 30px; */
    transition: transform 0.3s, box-shadow 0.3s;
    /* background-color: #FFFFFF; */
    box-shadow: 0 4px 8px rgba(71, 215, 208, 0.2);
    border-radius: 5px;
    margin-right: 5px;
}

.alliance-card:hover {
    /* transform: translateY(-10px); */
    box-shadow: 0 4px 8px rgba(225, 124, 154, 0.2);
}

.alliance-card img {
    width: 100%;
    height: auto;
}

.logo-grid, .testimonial-slider, .alliance-logo-grid, .why-ogma {
    padding: 50px 0;
    text-align: center;
    /* background-color: #FFFFFF; */
    /* color: #000000; */
}

.contact-section {
    /* background-color: #FFFFFF; */
    padding: 50px 0;
    text-align: center;
}

.footer-main {
    color: #FFFFFF;
    font-size: 0.9rem;
}

.footer-menu a {
    color: #FFFFFF;
}

.footer-menu a:hover {
    color: aquamarine;
}

.footer-disclaimer {
    background-color: #000000;
    color: #FFFFFF;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

.social-icons a {
    color: #FFFFFF;
    margin: 0 10px;
    font-size: 20px;
    text-decoration: none;
}

.card {
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #000;
    color: #fff;
    box-shadow: 0 4px 8px rgba(71, 215, 208, 0.2);
    border-radius: 5px; /* Optional: Add some border radius for a smoother look */
}

.nav-link {
    color: #fff;
}

.nav-link:hover {
    color: #FF416C;
}

/* Navbar top-level dropdown toggle links — gradient accent */
#servicesDropdown,
#servicesMenuDropdown {
    background: linear-gradient(to right, #FF416C, #8A2387);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background-color: #FF416C; /* Change this to your desired color */
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background-color: #FF416C; /* Change this to your desired color */
    border-radius: 50%;
    cursor: pointer;
}

input[type="checkbox"] {
    color: #FF416C; /* Change this to your desired color */
    background-color: #FF416C;
}

.accordion-button:not(.collapsed) {
    background-color: #000;
    color: #fff;
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
}

.accordion-button {
    color: #000;
    background-color: #fff;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
}

.navbar-brand img{
    width: clamp(90px, 15vw, 150px);
}

.modal-content {
    background: #1d1a1f;
    max-width: 550px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(239, 87, 179, 0.5);
}

.modal-content .btn {
    background-color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    
}
.modal-content .btn:hover {
    color: #000;
    background: linear-gradient(to right, #FF416C, #8A2387); 
    -webkit-text-fill-color: #fff;
}

thead {
    color: #fff;
    -webkit-text-fill-color: #fff;
    /* background intentionally unset — each page controls thead colour via inline styles */
}

/* Bootstrap 5 uses --bs-table-color (CSS variable) for cell text, not inherited colour.
   Set white globally so all dark-theme tables render correctly without per-cell overrides. */
.table {
    --bs-table-color: #ffffff;
    --bs-table-bg: transparent;
}

a {
    color: #fff;
    text-decoration: none;
}

hr {
    color: #FF416C;
    margin: 30px auto;
}

.accordion-body {
    background-color: #0d1117;
    color: #d0d0d0;
}

/* ── Navbar Dropdown Menus — Dark Theme ─────────────────────────────────── */

.dropdown-menu {
    background: #06090f;
    border: 1px solid rgba(127, 255, 212, 0.12);
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
    padding: 6px 0;
    min-width: 260px;
}

.dropdown-item {
    color: #ffffff;
    padding: 8px 16px;
    width: auto;
    max-width: 360px;
    border-radius: 6px;
    margin: 1px 5px;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-text-fill-color: #ffffff;
}

.dropdown-item strong {
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
    -webkit-text-fill-color: #ffffff;
}

.dropdown-item p {
    white-space: normal;
    margin: 0;
    font-size: 0.76rem;
    color: #6a7f88;
    line-height: 1.4;
    -webkit-text-fill-color: #6a7f88;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(127, 255, 212, 0.07);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.dropdown-item:hover strong,
.dropdown-item:focus strong {
    color: aquamarine;
    -webkit-text-fill-color: aquamarine;
}

.dropdown-item:hover p,
.dropdown-item:focus p {
    color: #7a9098;
    -webkit-text-fill-color: #7a9098;
}

/* ── Submenu structure ── */
.dropdown-submenu {
    position: relative;
    width: 100%;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    right: 100%;
    left: auto;
    margin-top: -8px;
    margin-right: 4px;
    border-radius: 10px;
    display: none;
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

/* Category / section header labels (e.g. "Network Security", "Web & API Security") */
.dropdown-submenu > .dropdown-item {
    color: #FF416C;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    padding: 9px 16px 7px;
    -webkit-text-fill-color: #FF416C;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-submenu > .dropdown-item::after {
    content: '›';
    font-size: 1rem;
    opacity: 0.6;
    margin-left: 8px;
    -webkit-text-fill-color: #FF416C;
}

.dropdown-submenu > .dropdown-item:hover {
    background: rgba(255, 65, 108, 0.08);
    color: #FF416C;
    -webkit-text-fill-color: #FF416C;
}

/* Customize the Select2 dropdown field */
.select2-container--default .select2-selection--single {
    background-color: #fff; /* Light gray background */
    color: black; /* Black font color */
    border: 1px solid #ced4da; /* Match your other form inputs' borders */
    border-radius: 4px; /* Optional: match your form input border radius */
    height: 40px; /* Match the height of your form inputs */
    padding: 6px 12px; /* Adjust padding to match your form inputs */
}

/* Customize the dropdown options */
.select2-container--default .select2-results__option {
    background-color: #fff; /* Light gray background for options */
    color: black; /* Black font color for options */
}

/* Change the background of the selected item in the dropdown */
.select2-container--default .select2-results__option--selected {
    background-color: #fff; /* Darker gray for selected item */
    color: ooo; /* White font color for selected item */
}

/* Customize the dropdown arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px; /* Adjust to match the height of your form inputs */
}

.service-card img {
    filter: grayscale(30%); /* This makes the image black and white */
    transition: filter 0.3s ease; /* Smooth transition effect */
}

.service-card img:hover {
    filter: grayscale(0%); /* Removes the black-and-white filter, showing the original color */
}

html {
    scroll-behavior: smooth;
}

.partner-logo {
    filter: brightness(0) invert(1);
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.partner-logo:hover {
    opacity: 0.9;
}

/* ── Responsive breakpoints ─────────────────────────────────────────────── */

@media (max-width: 992px) {
    .dropdown-item { max-width: 100%; }
    .alliance-card { width: 48%; }

    /* ── Navbar: dropdown dark bg on mobile ── */
    .dropdown-menu {
        background: #06090f;
        border: 1px solid rgba(127,255,212,0.1);
        border-radius: 8px;
    }

    /* ── Navbar: show nested submenus inline on mobile ── */
    .dropdown-submenu .dropdown-menu {
        position: static !important;
        display: block !important;
        border: none;
        box-shadow: none;
        background: transparent;
        padding-left: 12px;
        margin: 0;
        border-radius: 0;
    }
    .dropdown-submenu .dropdown-menu .dropdown-item {
        padding: 6px 12px;
        font-size: 0.84rem;
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
        border-left: 2px solid rgba(127,255,212,0.2);
        margin: 1px 0;
        border-radius: 0;
        max-width: 100%;
    }
    .dropdown-submenu .dropdown-menu .dropdown-item strong {
        font-size: 0.84rem;
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
    }
    .dropdown-submenu > .dropdown-item {
        color: #FF416C;
        font-weight: 700;
        font-size: 0.75rem;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        padding: 10px 12px 6px;
        -webkit-text-fill-color: #FF416C;
    }
    .dropdown-submenu > .dropdown-item::after {
        display: none; /* hide the › arrow on mobile */
    }
    .dropdown-item p.small { display: none; } /* hide descriptions on mobile to save space */
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: unset;
        padding: 50px 16px;
    }
    .hero-section h1 {
        font-size: clamp(1.8rem, 6vw, 3rem);
        margin-top: 16px;
    }
    .hero-section p { padding-bottom: 20px; }

    .service-card .btn {
        color: #000;
        background-color: #fff;
        padding: 10px 18px;
        min-height: 44px;
    }

    .title { font-size: clamp(1.5rem, 4.5vw, 2.2rem); margin: 15px; }

    .alliance-card { width: 48%; margin-bottom: 16px; }

    .dropdown-submenu .dropdown-menu {
        position: static;
        right: auto;
        margin: 0;
        box-shadow: none;
    }

    /* Table density reduction on mobile */
    .table th, .table td { font-size: 0.82rem; }
}

@media (max-width: 576px) {
    .hero-section { padding: 40px 12px; }
    .hero-section h1 { font-size: clamp(1.5rem, 5.5vw, 2.2rem); }

    .title { font-size: 1.6rem; }

    .alliance-card { width: 100%; margin-right: 0; }

    .modal-dialog { margin: 10px; }

    /* MOBILE-FIX (2026-05-22): footer social icons were ~18-20px inline —
       below the 44px touch minimum. Give them a real 44x44 box; give
       footer text links comfortable tap padding. Mobile-only block —
       desktop footer is untouched. */
    .footer-main .social-icons a {
      font-size: 18px; margin: 0 4px;
      display: inline-flex; align-items: center; justify-content: center;
      width: 44px; height: 44px;
    }
    .footer-main a { display: inline-block; padding: 6px 2px; }

    /* Footer columns stack gracefully */
    .footer-main .col-md-4 { margin-bottom: 24px; }

    /* Table: tighter padding on small screens */
    .table th, .table td { padding: 8px 6px !important; font-size: 0.78rem; }
}

@media (max-width: 480px) {
    .hero-section { padding: 32px 8px; }
    .btn { font-size: 0.88rem; padding: 10px 16px; }
    hr { margin: 12px auto; }
    .title { font-size: 1.4rem; }
}

/* ──────────────────────────────────────────────────────────────────────────
   OIP-2 P2-1 / A11Y-16 — body-text contrast on dark backgrounds.
   axe-core flagged #444 / #666 / #888 paragraph text (2.1–3.7:1) as failing
   WCAG AA (need 4.5:1). Bump muted greys to a contrast-safe band so screen
   readers and low-vision users read the same visible text.
   ────────────────────────────────────────────────────────────────────────── */
body, p { color: #d0d0d0; }   /* base — 12.6:1 on #000 */

/* Scoped overrides — only when the element sits on a dark surface, never
   on a white card / form. Targets the typical Ogma marketing rows. */
section p[style*="color:#444"],
section p[style*="color: #444"],
section p[style*="color:#555"],
section p[style*="color: #555"],
section p[style*="color:#666"],
section p[style*="color: #666"],
section p[style*="color:#777"],
section p[style*="color: #777"],
section p[style*="color:#888"],
section p[style*="color: #888"] {
  color: #b8b8b8 !important;  /* 9.5:1 on #000, 7.4:1 on #06090f */
}

/* Footer / very dim text band — keep distinguishable but bump to AA. */
section [style*="color:#888"],
section [style*="color: #888"],
.footer-main [style*="color:#777"],
.footer-main [style*="color: #777"] {
  color: #aaaaaa !important;  /* 6.5:1 on #000 */
}

/* Card body text */
.card p, .card-text { color: #c9c9c9; }   /* 8.7:1 on #0d1117 */

/* OIP-2 P2-3 — inline links inside long-form content must have a non-colour
   visual cue. Underline on hover wasn't enough for color-blind readers. */
.post-detail .content a,
article p a,
.blog-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.post-detail .content a:hover,
article p a:hover,
.blog-content a:hover {
  text-decoration-thickness: 2px;
  color: #fff;
}
