/*
Theme Name: PetaRI
Description: PetaRI
Version: 1.0
Author: rocket.web
Author URI: https://www.rocketweb.my
Template: enfold
*/

/* M2 only layers RUU content into the copied legacy child shell. */
:root { --petari-navy:#173f6c; --petari-blue:#718ab8; --petari-pale:#eaf2ff; --petari-line:#c9d6e8; --petari-text:#1c1c1c; --petari-green:#6b9328; }
html, body, #wrap_all, #main { overflow-x:hidden; }
body { background:var(--petari-pale); color:var(--petari-text); font-family:"Poppins", "Helvetica Neue", Arial, sans-serif; }
#top #header, #top #header_main, #top #header_main .header_bg { background:var(--petari-navy); border:0; }
#top #header_main .container { height:92px; }
#top #header_main .inner-container { display:flex; align-items:center; }
.petari-reference-logo { display:block; width:auto; max-width:690px; }
.petari-reference-logo > a { display:flex; align-items:center; gap:14px; color:#fff; text-decoration:none; }
.petari-reference-logo img { width:86px; height:65px; object-fit:contain; }
.petari-reference-logo__text { display:flex; flex-direction:column; line-height:1.15; }
.petari-reference-logo__text strong { color:#fff; font-size:25px; letter-spacing:.01em; white-space:nowrap; }
.petari-reference-logo__text small { color:#fff; font-size:15px; margin-top:4px; white-space:nowrap; }
/* Native Enfold menu chrome applies only when UberMenu is not rendering. */
body:not(.petari-has-ubermenu) #header .main_menu { right:0; }
body:not(.petari-has-ubermenu) #header .av-main-nav > li > a { color:#fff; font-size:13px; font-weight:700; text-transform:uppercase; }
body:not(.petari-has-ubermenu) #header .av-main-nav > li > a:hover, body:not(.petari-has-ubermenu) #header .av-main-nav > li.current-menu-item > a { color:#fff; opacity:.82; }
body:not(.petari-has-ubermenu) #header .av-main-nav ul { background:var(--petari-navy); border:0; }
body:not(.petari-has-ubermenu) #header .av-main-nav ul a { color:#fff; }
/* UberMenu owns the public header slot as a flex sibling of the logo. */
body.petari-has-ubermenu #header_main .inner-container { display:flex; align-items:center; justify-content:flex-start; gap:16px; position:relative; }
body.petari-has-ubermenu #header .logo, body.petari-has-ubermenu #header .logo a { position:relative; float:none; left:auto; overflow:visible; flex:0 1 auto; min-width:0; height:auto; z-index:1; }
body.petari-has-ubermenu #header_main .main_menu { display:none; }
body.petari-has-ubermenu #header .ubermenu .av-burger-menu-main,
body.petari-has-ubermenu #header .ubermenu .menu-item-search-dropdown { display:none; }
body.petari-has-ubermenu #header .ubermenu-responsive-toggle { position:relative; float:none; margin-left:auto; flex:0 0 auto; z-index:2; }
body.petari-has-ubermenu #header .ubermenu.ubermenu-main { position:relative; float:none; width:auto; max-width:100%; min-width:0; margin-left:auto; flex:0 1 auto; z-index:2; background:transparent; }
body.petari-has-ubermenu #header .ubermenu-main .ubermenu-item-level-0 > .ubermenu-target { color:#fff; font-size:13px; font-weight:700; text-transform:uppercase; background:transparent; }
body.petari-has-ubermenu #header .ubermenu-main .ubermenu-item-level-0 > .ubermenu-target:hover, body.petari-has-ubermenu #header .ubermenu-main .ubermenu-item-level-0.ubermenu-current-menu-item > .ubermenu-target { color:#fff; opacity:.82; }
.petari-home-mobile-header { display:none; }

.petari-reference-ruu { background:var(--petari-pale) url("assets/bg-content.png") right bottom / 1055px auto no-repeat; }
.petari-reference-banner { min-height:258px; background:var(--petari-pale) url("assets/hero-bendera.png") center center / 100% 100% no-repeat; }
.petari-reference-banner__inner { width:min(1120px, calc(100% - 64px)); min-height:258px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; }
.petari-reference-banner h1 { margin:0; color:#3d5f7d; font-size:clamp(28px, 3vw, 43px); font-weight:700; text-transform:uppercase; }
.petari-reference-banner__photo { width:45%; height:258px; overflow:hidden; clip-path:polygon(15% 0,100% 0,100% 100%,0 100%,17% 50%); }
.petari-reference-banner__photo img { display:block; width:100%; height:100%; object-fit:cover; }
.petari-reference-content { width:min(1120px, calc(100% - 64px)); margin:0 auto; padding:52px 0 72px; }
.petari-reference-years { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 34px; }
.petari-reference-years a { padding:8px 17px; background:#fff; border:1px solid var(--petari-line); color:var(--petari-navy); font-size:14px; text-decoration:none; }
.petari-reference-years a.is-current, .petari-reference-years a:hover { background:var(--petari-blue); border-color:var(--petari-blue); color:#fff; }
.petari-reference-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid var(--petari-line); }
.petari-reference-list__item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px 24px; align-items:center; margin:0; padding:25px 20px; background:rgba(255,255,255,.78); border-right:1px solid var(--petari-line); border-bottom:1px solid var(--petari-line); }
.petari-reference-list__item h3 { margin:3px 0 0; font-size:21px; line-height:1.25; }
.petari-reference-list__item h3 a { color:var(--petari-navy); text-decoration:none; }
.petari-reference-kicker, .petari-reference-status__date { margin:0; color:#64748b; font-size:13px; }
.petari-reference-list__status { grid-column:1/-1; margin:0; color:#4f6177; font-size:14px; }
.petari-reference-list__status strong, .petari-reference-list__status span { display:block; }
.petari-reference-list__link { color:var(--petari-green); font-size:13px; font-weight:700; text-decoration:none; white-space:nowrap; }
.petari-reference-empty { padding:20px; background:#fff; }

.petari-reference-content--summary { padding-top:0; }
.petari-reference-summary__layout { display:grid; grid-template-columns:330px minmax(0,1fr); gap:30px; align-items:stretch; }
.petari-reference-kajian__layout { display:grid; grid-template-columns:minmax(0,1fr); gap:30px; align-items:stretch; }
.petari-reference-status { background:var(--petari-blue); color:#fff; }
.petari-reference-status h2 { margin:0; padding:18px; background:#aad3fb; color:#42647e; font-size:19px; text-align:center; text-transform:uppercase; }
.petari-reference-status__body { position:relative; min-height:720px; padding:21px 16px 24px; }
.petari-reference-status__date { color:#e5edf7; }
.petari-reference-status__card { margin-top:11px; padding:22px 13px; background:#455b79; border-radius:19px; }
.petari-reference-status__card p { color:#fff; }
.petari-reference-status__title { margin:0 0 20px; font-size:15px; font-weight:600; }
.petari-reference-status__card div { font-size:15px; line-height:1.55; }
.petari-reference-status__line { display:block; width:1px; height:370px; margin:45px auto 35px; background:#e7edf5; position:relative; }
.petari-reference-status__line::before, .petari-reference-status__line::after { content:""; position:absolute; left:-3px; width:7px; height:7px; border-radius:50%; background:#e7edf5; }
.petari-reference-status__line::before { top:0; } .petari-reference-status__line::after { bottom:0; }
.petari-reference-cta { margin:0; }
.petari-reference-cta a { display:block; padding:17px 10px; border-radius:17px; background:#455b79; color:#fff; font-size:13px; font-weight:700; text-align:center; text-decoration:none; }
.petari-reference-summary__main { min-width:0; }
.petari-reference-title { margin:0 0 15px; color:#3d5f7d; font-size:clamp(28px,3vw,40px); line-height:1.15; text-transform:uppercase; }
.petari-reference-featured { margin:0 0 42px; }
.petari-reference-featured img { display:block; width:100%; height:auto; }
.petari-reference-section { margin:0 0 34px; font-size:16px; line-height:1.65; }
.petari-reference-section h3, .petari-reference-chronology__heading { margin:0 0 14px; color:#3d5f7d; font-size:22px; }
.petari-reference-section a { color:var(--petari-green); }
.petari-reference-section ul { padding-left:20px; }
.petari-reference-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:0; padding:0; list-style:none; }
.petari-reference-gallery figure { margin:0; }
.petari-reference-gallery figure > a { display:block; color:inherit; text-decoration:none; }
.petari-reference-gallery img { display:block; width:100%; aspect-ratio:4 / 3; object-fit:cover; }
.petari-reference-gallery figcaption { padding:9px 10px; background:#fff; color:#526b87; font-size:13px; line-height:1.45; }
.petari-reference-event-links { display:flex; flex-wrap:wrap; gap:8px 18px; margin:16px 0 0; }
.petari-reference-event-links a { font-size:14px; font-weight:700; }

.petari-reference-chronology .petari-reference-content { padding-top:48px; }
.petari-reference-chronology__heading { margin-top:40px; color:#222; }
.petari-reference-timeline { list-style:none; margin:32px 0 45px; padding:0 0 0 30px; border-left:2px solid var(--petari-blue); }
.petari-reference-timeline li { position:relative; margin:0 0 30px; padding-left:25px; }
.petari-reference-timeline__marker { position:absolute; left:-37px; top:4px; width:12px; height:12px; border:3px solid var(--petari-pale); border-radius:50%; background:var(--petari-blue); box-shadow:0 0 0 2px var(--petari-blue); }
.petari-reference-timeline__content { padding-bottom:8px; }
.petari-reference-timeline__content .petari-reference-status__date { color:#526b87; font-weight:600; }
.petari-reference-timeline__content h4 { margin:4px 0 8px; color:var(--petari-navy); font-size:19px; }
.petari-reference-back a { display:inline-block; padding:12px 25px; background:#455b79; border-radius:6px; color:#fff; font-weight:700; text-decoration:none; }

#petari-reference-footer { background:var(--petari-blue); color:#fff; font-size:15px; }
.petari-reference-footer__inner { width:min(1120px,calc(100% - 64px)); margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:35px; padding:44px 0 40px; }
.petari-reference-footer__inner div { display:flex; flex-direction:column; gap:7px; }
.petari-reference-footer__inner a { color:#fff; }
.petari-reference-footer__socket { padding:16px; background:#abb9d4; color:#111; font-weight:700; text-align:center; }
#footer, #socket { display:none !important; }

@media (max-width:959px) {
	body.home.petari-has-ubermenu .petari-home-mobile-header { position:absolute; z-index:10000; top:0; left:0; right:0; display:flex; align-items:center; min-height:72px; padding:8px 16px; background:rgba(23,63,108,.96); color:#fff; }
	.petari-home-mobile-header__brand { display:flex; align-items:center; min-width:0; flex:1 1 auto; gap:8px; overflow:hidden; color:#fff; text-decoration:none; }
	.petari-home-mobile-header__brand img { flex:0 0 auto; width:44px; height:44px; object-fit:contain; }
	.petari-home-mobile-header__brand span { display:flex; min-width:0; flex-direction:column; line-height:1.15; }
	.petari-home-mobile-header__brand strong { color:#fff; font-size:13px; line-height:1.1; white-space:normal; }
	.petari-home-mobile-header__brand small { max-width:205px; margin-top:3px; color:#fff; font-size:8px; white-space:normal; }
	.petari-home-mobile-header__menu { flex:0 0 auto; margin-left:auto; }
	body.home .petari-home-mobile-header .ubermenu-responsive-toggle { display:block; width:auto; padding:14px 10px; color:#fff; background:transparent; font-size:14px; font-weight:700; text-transform:uppercase; }
	body.home .petari-home-mobile-header .ubermenu-responsive-toggle:hover,
	body.home .petari-home-mobile-header .ubermenu-responsive-toggle:focus { color:#fff; background:rgba(255,255,255,.12); }
	body.home .petari-home-mobile-header .ubermenu.ubermenu-main { position:absolute; z-index:10001; top:100%; left:0; right:0; width:100%; max-width:none; background:#fff; }
	body.home .petari-home-mobile-header .ubermenu-main .ubermenu-target { color:var(--petari-navy); background:#fff; }
	body.home .petari-home-mobile-header .ubermenu .av-burger-menu-main,
	body.home .petari-home-mobile-header .ubermenu .menu-item-search-dropdown { display:none; }
}

@media (max-width:479px) {
	.petari-home-mobile-header__brand small { display:none; }
}

@media (max-width:767px) {
	#top #header_main .container { height:80px; }
	body:not(.petari-has-ubermenu) #header_main .inner-container { overflow:hidden; }
	body.petari-has-ubermenu #header_main .inner-container { overflow:visible; height:80px; flex-wrap:nowrap; }
	body.petari-has-ubermenu #header_main .container { height:80px !important; }
	body.petari-has-ubermenu #header .logo { display:flex; align-items:center; float:none; width:auto; max-width:none; min-width:0; flex:1 1 auto; height:80px !important; max-height:80px; overflow:hidden; }
	body.petari-has-ubermenu #header .logo a, body.petari-has-ubermenu #header .petari-reference-logo > a { display:flex; flex-direction:row; align-items:center; height:80px; max-height:80px; overflow:hidden; gap:7px; }
	body.petari-has-ubermenu #header .petari-reference-logo img { width:44px; height:44px !important; max-height:44px; }
	.petari-reference-logo__text strong { font-size:15px; white-space:normal; }
	.petari-reference-logo__text small { max-width:190px; font-size:9px; white-space:normal; }
	body:not(.petari-has-ubermenu) #header .main_menu { display:none; }
	body:not(.petari-has-ubermenu) #header .av-burger-menu-main { display:block; }
	body.petari-has-ubermenu #header .ubermenu-responsive-toggle { width:auto; max-width:42%; flex:0 0 auto; }
	body.petari-has-ubermenu #header .ubermenu.ubermenu-main { position:absolute; left:0; right:0; top:100%; margin-left:0; width:100%; max-width:none; flex:none; }
	.petari-reference-banner { min-height:174px; background-size:100% 100%; }
	.petari-reference-banner__inner { width:calc(100% - 32px); min-height:174px; }
	.petari-reference-banner h1 { align-self:flex-end; margin-bottom:25px; padding:10px 12px; background:rgba(255,255,255,.8); font-size:23px; }
	.petari-reference-banner__photo { width:52%; height:174px; }
	.petari-reference-content, .petari-reference-footer__inner { width:calc(100% - 32px); }
	.petari-reference-content { padding:30px 0 48px; }
	.petari-reference-list { display:block; }
	.petari-reference-list__item { border-right:0; }
	.petari-reference-summary__layout { display:flex; flex-direction:column; gap:25px; }
	.petari-reference-summary__main { order:1; }
	.petari-reference-status { order:2; }
	.petari-reference-status__body { min-height:520px; }
	.petari-reference-status__line { height:210px; }
	.petari-reference-title { font-size:27px; }
	.petari-reference-section { font-size:15px; }
	.petari-reference-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
	.petari-reference-event-links { display:grid; gap:8px; }
	.petari-reference-footer__inner { display:block; padding:32px 0; }
	.petari-reference-footer__inner div + div { margin-top:25px; }
}
