/* =============================================
   RoyalCert Website - Main Stylesheet
   ============================================= */

:root {
    --primary:       #880808;
    --hover:         #666;
    --menu-bg:       #FFFFFF;
    --menu-font:     #2B140F;
    --white:         #ffffff;
    --black:         #000000;
    --light-gray:    #f8f8f8;
    --border-color:  #dee2e6;
    --dark-bg:       #1a1a1a;
	--white-color:   #FFF;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--white);
    color: var(--black);
    margin: 5px;
    padding: 5px 5px;
    font-size: 15px;
    line-height: 1.7;
}
}
        /* RoyalCert Custom Brand Colors */
        .brand-blue { color: #0f2d59; }
        .bg-brand-blue { background-color: #0f2d59; }
        .border-brand-blue { border-color: #0f2d59; }
        .brand-gold { color: #d4af37; }
        .bg-brand-gold { background-color: #d4af37; }
        
        /* Smooth card hover transitions */
        .service-card {
            transition: all 0.3s ease-in-out;
        }
        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px -5px rgba(15, 45, 89, 0.1), 0 8px 10px -6px rgba(15, 45, 89, 0.1);
        }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: var(--black);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.25s ease;
}
a:hover { color: var(--hover); text-decoration: none; }

img { max-width: 100%; height: auto; }

/* =============================================
   TOP UTILITY BAR
   ============================================= */
#top-bar {
    background-color: var(--menu-bg);
    color: var(--menu-font);
    padding: 6px 0;
    font-size: 13px;
}
#top-bar .top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}
#top-bar a {
    color: var(--menu-font);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
}
#top-bar a:hover {
    color: var(--hover);
    background: rgba(255,255,255,0.25);
}

/* Google Translate */
#google_translate_element select {
    border: 1px solid #999;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    background: var(--white);
    color: var(--menu-font);
    cursor: pointer;
}
#google_translate_element .goog-te-gadget-simple {
    background: transparent !important;
    border: none !important;
}

/* =============================================
   MAIN NAVIGATION
   ============================================= */
#main-nav {
    background-color: var(--menu-bg);
    border-bottom: 3px solid var(--primary);
    position: sticky;
	top: 0;
    z-index: 1050;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
#main-nav .navbar-brand img {
    height: 52px;
    width: auto;
    transition: opacity 0.2s;
}
#main-nav .navbar-brand img:hover { opacity: 0.85; }

#main-nav .navbar-nav .nav-link {
    color: var(--menu-font) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 14px !important;
    letter-spacing: 0.3px;
    transition: color 0.2s, background 0.2s;
    border-radius: 3px;
}
#main-nav .navbar-nav .nav-link:hover,
#main-nav .navbar-nav .nav-link:focus {
    color: var(--hover) !important;
    background: rgba(255,255,255,0.2);
}
#main-nav .navbar-nav .dropdown-menu {
    background-color: var(--white);
    border: none;
    border-top: 3px solid var(--primary);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 220px;
    padding: 6px 0;
}
#main-nav .dropdown-item {
    color: var(--menu-font);
    font-size: 13.5px;
    padding: 8px 20px;
    transition: background 0.18s, color 0.18s;
}
#main-nav .dropdown-item:hover {
    background-color: var(--hover);
    color: var(--white) !important;
}
#main-nav .dropdown-submenu { position: relative; }
#main-nav .dropdown-submenu > .dropdown-menu {
    top: 0; left: 100%; margin-top: -3px;
}
#main-nav .dropdown-submenu:hover > .dropdown-menu { display: block; }

/* Section heading inside dropdown */
#main-nav .dropdown-section-heading {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px 4px;
    pointer-events: none;
    border-top: 1px solid var(--border-color);
    margin-top: 4px;
}
#main-nav .dropdown-section-heading:first-child { border-top: none; margin-top: 0; }

/* Contact Us Button */
.btn-contact-nav {
    background-color: var(--primary) !important;
    color: var(--white-color) !important;
    border-radius: 4px !important;
    padding: 8px 20px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    margin-left: 8px;
	color:#000;
	transition: background 40.30s, transform 0.15s !important;
}
.btn-contact-nav:hover {
    background-color: var(--hover) !important;
    color: var (--white-color) !important;
    transform: translateY(-1px);
}

/* =============================================
   HERO SLIDER
   ============================================= */
#hero-slider {
    position: relative;
    overflow: hidden;
}
#hero-slider .carousel-item {
    height: 560px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#hero-slider .carousel-item img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    object-position: center;
}
#hero-slider .carousel-caption {
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 80px;
    background: linear-gradient(90deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.1) 70%, transparent 100%);
    text-align: left;
}
#hero-slider .carousel-caption h2 {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.5);
    max-width: 600px;
}
#hero-slider .carousel-caption p {
    color: rgba(255,255,255,0.92);
    font-size: 1.05rem;
    margin-bottom: 24px;
    max-width: 520px;
}
#hero-slider .carousel-caption .btn-slide {
    background: var(--primary);
    color: #fff;
    padding: 10px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s;
    border: none;
    display: inline-block;
}
#hero-slider .carousel-caption .btn-slide:hover { background: var(--hover); }
#hero-slider .carousel-control-prev-icon,
#hero-slider .carousel-control-next-icon { filter: invert(0); }
#hero-slider .carousel-indicators button {
    width: 10px; height: 10px; border-radius: 50%;
    background-color: rgba(255,255,255,0.6);
    border: none;
}
#hero-slider .carousel-indicators button.active { background-color: var(--primary); }

/* =============================================
   WHY CHOOSE SECTION
   ============================================= */
#why-choose {
    padding: 70px 0;
    background: var(--light-gray);
}
#why-choose h2.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--black);
}
#why-choose .section-subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 50px;
    font-size: 15px;
}
.why-card {
    background: var(--white);
    border-radius: 8px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
    border-top: 4px solid var(--primary);
}
.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(136,8,8,0.13);
}
.why-card .icon-wrap {
    width: 72px; height: 72px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #fff;
    transition: background 0.2s;
}
.why-card:hover .icon-wrap { background: var(--hover); }
.why-card h4 { font-size: 1.1rem; margin-bottom: 12px; }
.why-card p { font-size: 14px; color: #555; margin: 0; }

/* =============================================
   ABOUT SECTION
   ============================================= */
#about-section {
    padding: 70px 0;
    background: var(--white);
}
#about-section .about-img img {
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    width: 100%;
}
#about-section h2 { color: var(--primary); margin-bottom: 16px; }
#about-section .btn-primary-rc {
    background: var(--primary);
    color: #fff;
    padding: 10px 28px;
    border-radius: 4px;
    font-weight: 700;
    transition: background 0.2s;
    display: inline-block;
    margin-top: 16px;
}
#about-section .btn-primary-rc:hover { background: var(--hover); }

/* =============================================
   STATS SECTION
   ============================================= */
#stats-section {
    background: var(--primary);
    padding: 60px 30px;
	text-align:center;
    color: #fff;
}
.stat-item { text-align: center; padding: 10px; }
.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-item .stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.9;
}
.stat-item .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.85;
}

/* =============================================
   MAP / CONTACT SECTION
   ============================================= */
#map-section {
    padding: 70px 0;
    background: var(--light-gray);
}
#map-section h2 { color: var(--primary); margin-bottom: 24px; }
#map-section .map-frame {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}
#map-section .map-frame iframe { display: block; }
.contact-info-sidebar h4 { color: var(--primary); margin-bottom: 20px; font-size: 1.2rem; }
.contact-info-sidebar .info-item {
    display: flex; align-items: flex-start;
    gap: 14px; margin-bottom: 18px;
}
.contact-info-sidebar .info-item i {
    color: var(--primary); font-size: 20px; margin-top: 2px; flex-shrink: 0;
}
.contact-info-sidebar .info-item p { margin: 0; font-size: 14px; color: #333; }
.contact-info-sidebar .info-item strong { display: block; margin-bottom: 2px; }

/* =============================================
   PAGE BANNER
   ============================================= */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #4a0404 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: url('../images/banner-pattern.png') repeat;
    opacity: 0.05;
}
.page-banner h1 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 10px;
    position: relative;
}
.page-banner .breadcrumb {
    background: transparent;
    justify-content: center;
    padding: 0;
    margin: 0;
    position: relative;
}
.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a { color: rgba(255,255,255,0.8); font-size: 13px; }
.page-banner .breadcrumb-item.active { color: #fff; }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.6); }

/* =============================================
   CONTENT PAGES
   ============================================= */
.page-content {
    padding: 60px 0;
}
.page-content h2 { color: var(--primary); margin-bottom: 16px; }
.page-content h3 { color: var(--menu-font); margin-bottom: 12px; }

/* Service cards */
.service-card {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 28px 24px;
    margin-bottom: 24px;
    transition: box-shadow 0.25s, transform 0.25s;
    height: 100%;
    border-top: 3px solid var(--primary);
}
.service-card:hover {
    box-shadow: 0 8px 28px rgba(136,8,8,0.1);
    transform: translateY(-4px);
}
.service-card .service-icon {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 16px;
    transition: color 0.2s;
}
.service-card:hover .service-icon { color: var(--hover); }
.service-card h4 { font-size: 1.05rem; margin-bottom: 10px; }
.service-card p { font-size: 13.5px; color: #555; margin: 0; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-rc {
    background-color: var(--primary);
    color: #fff !important;
    border: 2px solid var(--primary);
    padding: 9px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    display: inline-block;
    cursor: pointer;
}
.btn-rc:hover {
    background-color: var(--hover);
    border-color: var(--hover);
    color: #fff !important;
    transform: translateY(-1px);
}
.btn-rc-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    padding: 9px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    cursor: pointer;
}
.btn-rc-outline:hover {
    background: var(--primary);
    color: #fff !important;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form-wrap { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.contact-form-wrap .form-label { font-weight: 600; font-size: 13.5px; color: var(--black); margin-bottom: 5px; }
.contact-form-wrap .form-control,
.contact-form-wrap .form-select {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 9px 14px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form-wrap .form-control:focus,
.contact-form-wrap .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(136,8,8,0.12);
    outline: none;
}
.contact-form-wrap .form-check-label { font-size: 13px; color: #555; }
.contact-form-wrap textarea { resize: vertical; min-height: 110px; }

/* =============================================
   FOOTER
   ============================================= */
#footer {
    background-color: #1a1a1a;
    color: rgba(255,255,255,0.85);
    padding: 90px 0 0;
}
#footer .footer-logo img { height: 50px; margin-bottom: 20px; }
#footer .footer-about { font-size: 13.5px; line-height: 1.8; color: rgba(255,255,255,0.7); }
#footer h5 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
#footer .footer-links { list-style: none; padding: 0; margin: 0; }
#footer .footer-links li { margin-bottom: 8px; }
#footer .footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 13.5px;
    transition: color 0.2s, padding-left 0.2s;
}
#footer .footer-links a:hover { color: var(--hover); padding-left: 4px; }

#footer .footer-contact-item {
    display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px;
}
#footer .footer-contact-item i { color: var(--primary); font-size: 16px; margin-top: 2px; }
#footer .footer-contact-item span { font-size: 13.5px; color: rgba(255,255,255,0.75); }

/* Footer bottom bar */
#footer-bottom {
    background: #111;
    padding: 20px 0;
    margin-top: 50px;
}
.footer-policy-links {
    display: flex; flex-wrap: wrap; gap: 6px;
    justify-content: center; margin-bottom: 10px;
}
.footer-policy-links a {
    color: rgba(255,255,255,0.65);
    font-size: 12.5px;
    padding: 2px 8px;
    border-right: 1px solid rgba(255,255,255,0.2);
    transition: color 0.2s;
}
.footer-policy-links a:last-child { border-right: none; }
.footer-policy-links a:hover { color: var(--hover); }

.footer-slogan {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    font-size: 13px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

/* Social icons */
.social-icons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.social-icons a {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8) !important;
    font-size: 16px;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}
.social-icons a:hover {
    background: var(--hover);
    color: #fff !important;
    transform: translateY(-2px);
}

.footer-copyright {
    text-align: center;
    font-size: 12.5px;
    color: rgba(255,255,255,0.45);
    padding-top: 10px;
}

/* =============================================
   COOKIE NOTICE
   ============================================= */
#cookie-notice {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #1a1a1a;
    color: rgba(255,255,255,0.9);
    padding: 16px 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    border-top: 3px solid var(--primary);
}
#cookie-notice p { margin: 0; font-size: 13.5px; flex: 1; }
#cookie-notice a { color: var(--hover); }
#cookie-notice-ept {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
#cookie-notice-accept:hover { background: var(--hover); }

/* =============================================
   ACCREDITATION LOGOS
   ============================================= */
.accreditation-bar {
    background: var(--light-gray);
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.accreditation-bar img {
    height: 48px;
    width: auto;
    filter: grayscale(30%);
    opacity: 0.8;
    transition: opacity 0.2s, filter 0.2s;
    margin: 0 auto;
    display: block;
}
.accreditation-bar img:hover { opacity: 1; filter: none; }

/* =============================================
   NEWS CARDS
   ============================================= */
.news-card {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 28px;
    transition: box-shadow 0.25s;
    height: 100%;
}
.news-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card .news-body { padding: 20px; }
.news-card .news-date { font-size: 12px; color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.news-card h5 { font-size: 16px; margin-bottom: 10px; }
.news-card p { font-size: 13.5px; color: #555; }
.news-card .read-more { color: var(--primary); font-weight: 700; font-size: 13px; }
.news-card .read-more:hover { color: var(--hover); }

/* =============================================
   TEAM CARDS
   ============================================= */
.team-card {
    text-align: center; padding: 28px 20px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 28px;
    transition: box-shadow 0.25s;
}
.team-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.team-card img {
    width: 100px; height: 100px;
    border-radius: 50%; object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid var(--primary);
}
.team-card h5 { font-size: 15px; margin-bottom: 4px; }
.team-card span { font-size: 12.5px; color: var(--primary); font-weight: 600; }
.team-card p { font-size: 13px; color: #666; margin-top: 10px; margin-bottom: 0; }

/* =============================================
   SECTOR PAGE
   ============================================= */
.sector-intro { padding: 60px 0; }
.sector-intro img { border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,0.1); }
.certification-list { list-style: none; padding: 0; }
.certification-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}
.certification-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute; left: 0;
    color: var(--primary);
}
.certification-list li:last-child { border-bottom: none; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
    #hero-slider .carousel-item,
    #hero-slider .carousel-item img { height: 380px; }
    #hero-slider .carousel-caption { padding: 30px 30px; }
    #hero-slider .carousel-caption h2 { font-size: 1.7rem; }
    #main-nav .navbar-nav .nav-link { padding: 10px 12px !important; }
    #main-nav .dropdown-submenu > .dropdown-menu { left: 0; top: 100%; }
}
@media (max-width: 768px) {
    #hero-slider .carousel-item,
    #hero-slider .carousel-item img { height: 280px; }
    #hero-slider .carousel-caption { padding: 20px; }
    #hero-slider .carousel-caption h2 { font-size: 1.3rem; }
    #hero-slider .carousel-caption p { display: none; }
    #stats-section .stat-number { font-size: 2.2rem; }
    .page-banner h1 { font-size: 1.6rem; }
    .contact-form-wrap { padding: 24px 16px; }
    #cookie-notice { flex-direction: column; text-align: center; }
    #footer .footer-bottom-links { flex-direction: column; align-items: center; }
}
@media (max-width: 576px) {
    #hero-slider .carousel-caption { display: none !important; }
    .why-card, .service-card { margin-bottom: 20px; }
}

/* =============================================
   MISC UTILITIES
   ============================================= */
.section-divider {
    border: none; height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    margin: 0 0 40px;
    width: 60px;
}
.text-primary-rc { color: var(--primary) !important; }
.bg-primary-rc   { background-color: var(--primary) !important; }
.border-primary-rc { border-color: var(--primary) !important; }

.list-check { list-style: none; padding-left: 0; }
.list-check li { padding: 6px 0 6px 26px; position: relative; font-size: 14px; }
.list-check li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute; left: 0; color: var(--primary);
}

.highlight-box {
    background: var(--light-gray);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 6px 6px 0;
    margin: 24px 0;
}
.highlight-box p { margin: 0; font-size: 14px; color: #333; }

/* Scroll to top */
#scroll-top {
    position: fixed; bottom: 28px; right: 28px;
    width: 42px; height: 42px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0; transition: opacity 0.3s, background 0.2s;
    cursor: pointer; z-index: 999;
    text-decoration: none;
}
#scroll-top.visible { opacity: 1; }
#scroll-top:hover { background: var(--hover); color: #fff; }
