@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Khmer:wght@400;500;600;700;800&display=swap');

/* =========================================
   ELLEVIZE MEDIA
   MAIN STYLE
========================================= */

:root {
  --primary: #000099;
  --dark: #000000;
  --white: #FFFFFF;
  --light: #F5F5F5;
  --text: #333333;
  --border: #e5e5e5;
}

/* =========================================
   RESET
========================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--light);
  color: var(--text);
  font-family: 'Noto Sans Khmer', Arial, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}


/* =========================================
   CONTAINER
========================================= */

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}
/* =========================
   FINAL HEADER STYLE
========================= */

.top {
    background: #000099 !important;
    color: #FFFFFF !important;
}

/* Menu */
.top nav a,
.top .nav a {
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

/* Menu Hover */
.top nav a:hover,
.top .nav a:hover {
    color: #F5F5F5 !important;
}

/* Header Layout */
.top .container.nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.top .logo img {
    width: 170px;
    height: 65px;
    object-fit: contain;
}

/* Navigation spacing */
.top nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
/* =========================================
   NAVIGATION
========================================= */

.top nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.top nav a {
  color: var(--dark);

  text-decoration: none;

  font-size: 15px;
  font-weight: 600;

  transition: color 0.2s ease;
}

.top nav a:hover {
  color: var(--primary);
}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.menu {
  display: none;

  background: transparent;
  border: 0;

  color: var(--dark);

  font-size: 28px;
  cursor: pointer;
}


/* =========================================
   MAIN
========================================= */

main.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 70px;
}


/* =========================================
   HERO
========================================= */

.hero {
  margin: 0 0 45px;
}

.hero-card {
  position: relative;

  width: 100%;
  height: 500px;

  overflow: hidden;

  border-radius: 18px;

  background: var(--dark);
}

.hero-card > img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;
}

.hero-card .shade {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.35) 55%,
      rgba(0, 0, 0, 0.12) 100%
    );
}

.hero-text {
  position: absolute;

  left: 50px;
  right: 50px;
  bottom: 50px;

  max-width: 760px;

  color: var(--white);
}

.hero-text .tag {
  display: inline-block;

  padding: 6px 13px;
  margin-bottom: 14px;

  background: var(--primary);
  color: var(--white);

  border-radius: 6px;

  font-size: 13px;
  font-weight: 600;
}

.hero-text h1 {
  margin: 0 0 12px;

  color: var(--white);

  font-size: 40px;
  line-height: 1.35;
  font-weight: 800;
}

.hero-text p {
  margin: 0 0 10px;

  color: rgba(255, 255, 255, 0.92);

  font-size: 15px;
  line-height: 1.8;
}

.hero-text small {
  color: rgba(255, 255, 255, 0.85);

  font-size: 12px;
}


/* =========================================
   SECTION HEADER
========================================= */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 20px;

  padding-left: 14px;

  border-left: 5px solid var(--primary);
}

.section-head h2 {
  color: var(--dark);

  font-size: 28px;
  line-height: 1.4;
  font-weight: 800;
}

.section-head a {
  color: var(--primary);

  text-decoration: none;

  font-size: 14px;
  font-weight: 600;

  transition: opacity 0.2s ease;
}

.section-head a:hover {
  opacity: 0.7;
}


/* =========================================
   NEWS GRID
========================================= */

.grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 24px;

  margin-bottom: 60px;
}


/* =========================================
   NEWS CARD
========================================= */

.card {
  overflow: hidden;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: 16px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.12);
}

.card > a {
  display: block;

  text-decoration: none;
}

.card > a > img {
  width: 100%;
  height: 220px;

  object-fit: cover;
  display: block;

  transition: transform 0.4s ease;
}

.card:hover > a > img {
  transform: scale(1.03);
}


/* =========================================
   CARD BODY
========================================= */

.card-body {
  padding: 18px 20px 20px;
}

.card-body .tag {
  display: inline-block;

  padding: 5px 10px;
  margin-bottom: 10px;

  background: #eeeeff;
  color: var(--primary);

  border-radius: 5px;

  font-size: 12px;
  font-weight: 600;
}

.card-body h3 {
  margin: 0 0 9px;

  color: var(--dark);

  font-size: 19px;
  line-height: 1.5;
  font-weight: 700;
}

.card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.card-body p {
  margin: 0 0 10px;

  color: var(--text);

  font-size: 13px;
  line-height: 1.8;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
}

.card-body small {
  color: #777777;

  font-size: 12px;
}


/* =========================================
   FOOTER
========================================= */

footer {
  background: var(--dark);
  color: var(--white);

  margin-top: 30px;
}

.footer-container {
  width: min(1180px, 92%);
  margin: 0 auto;

  padding: 50px 0 30px;
}

footer h3 {
  margin-bottom: 10px;

  color: var(--white);

  font-size: 20px;
}

footer p {
  color: #cccccc;

  font-size: 13px;
  line-height: 1.8;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;

  border-top: 1px solid #333333;

  color: #999999;

  font-size: 12px;
}


/* =========================================
   RESPONSIVE - TABLET
========================================= */

@media (max-width: 900px) {

  .top .container.nav {
    min-height: 75px;
  }

  .logo img {
    width: 145px;
    height: 58px;
  }

  .top nav {
    gap: 20px;
  }

  .top nav a {
    font-size: 13px;
  }

  .hero-card {
    height: 440px;
  }

  .hero-text {
    left: 35px;
    right: 35px;
    bottom: 35px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* =========================================
   RESPONSIVE - MOBILE
========================================= */

@media (max-width: 650px) {

  .top .container.nav {
    min-height: 70px;
  }

  .logo img {
    width: 125px;
    height: 52px;
  }

  .menu {
    display: block;
  }

  .top nav {
    display: none;

    position: absolute;

    top: 70px;
    left: 0;
    right: 0;

    padding: 18px 20px;

    background: var(--white);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

    flex-direction: column;
    align-items: flex-start;

    gap: 16px;
  }

  .top nav.open {
    display: flex;
  }

  .top nav a {
    font-size: 14px;
  }

.hero-container {
    width: 100%;
    max-width: none;
    margin: 0;
}

.hero-card {
    width: 100%;
    height: 420px;
    border-radius: 0;
}

  .hero-text {
    left: 25px;
    right: 25px;
    bottom: 28px;
  }

  .hero-text h1 {
    font-size: 26px;
    line-height: 1.4;
  }

  .hero-text p {
    font-size: 13px;
  }

  .section-head {
    margin-bottom: 16px;
  }

  .section-head h2 {
    font-size: 23px;
  }

  .section-head a {
    font-size: 12px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card > a > img {
    height: 230px;
  }

  .card-body {
    padding: 16px;
  }

  .card-body h3 {
    font-size: 18px;
  }
}




/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 420px) {

  .logo img {
    width: 115px;
    height: 48px;
  }

  .hero-card {
    height: 390px;
  }

  .hero-text {
    left: 20px;
    right: 20px;
    bottom: 22px;
  }

  .hero-text h1 {
    font-size: 22px;
  }

  .hero-text p {
    font-size: 12px;
  }

  .card > a > img {
    height: 210px;
  }
}


/* FINAL ELLEVIZE HEADER */

.top {
    background: #000099 !important;
    color: #FFFFFF !important;
}

.top nav a {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.top nav a:hover {
    color: #F5F5F5 !important;
}
/* =================================
   ELLEVIZE INTRO SECTION
================================= */

.intro-section {
    background: #FFFFFF;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}

.intro-content {
    width: min(1000px, 92%);
    margin: auto;
}

.intro-label {
    display: block;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.intro-content h2 {
    color: #000099;
    font-size: 38px;
    font-weight: 800;
    margin: 0 0 22px;
}

.intro-content p {
    max-width: 900px;
    margin: auto;
    color: #333333;
    font-size: 17px;
    line-height: 1.9;
}

/* Mobile */
@media (max-width: 768px) {
    .intro-section {
        min-height: 320px;
        padding: 60px 20px;
    }

    .intro-content h2 {
        font-size: 28px;
    }

    .intro-content p {
        font-size: 15px;
        line-height: 1.8;
    }
}



/* =========================================
   ELLEVIZE MEDIA - NEW HEADER
========================================= */

.top {
    background: #FFFFFF !important;
    color: #000000 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* TOP CONTACT BAR */
.top-info {
    background: #FFFFFF;
    color: #000099;
    height: 50px;
    font-size:16px;
}

.header-container {
    width: min(1180px, 92%);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-info .header-container {
    height: 36px;
}

.contact-left {
    display: flex;
    gap: 30px;
}

.social-right {
    display: flex;
    gap: 20px;
    font-weight: 700;
}

/* MAIN HEADER */
.main-header {
    background: #000099;
}

.main-header .header-container {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 400px !important;
    height:120px !important;
    object-fit: contain;
    display: block;
}

.main-nav a {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;

.main-nav a {
    color: #000000 !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #000099 !important;
}

/* MENU BUTTON */
.menu {
    display: none;
    background: none;
    border: 0;
    color: #000099;
    font-size: 35px;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

    .contact-left {
        gap: 10px;
        font-size: 10px;
    }

    .social-right {
        gap: 10px;
    }

    .logo img {
        width: 130px;
        height: 52px;
    }

    .menu {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 118px;
        left: 0;
        right: 0;
        background: #FFFFFF;
        padding: 20px;
        flex-direction: column;
        gap: 18px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .main-nav.open {
        display: flex;
    }
}

/* =========================================
   ELLEVIZE MEDIA - FULL WIDTH HERO
   ========================================= */

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

/* Header */
.main-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: rgba(0, 0, 160, 0.82) !important;
}

/* Main container */
main.container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* HERO - BREAK OUT OF CONTAINER */
main.container .hero {
    position: relative !important;
    width: 100vw !important;
    max-width: none !important;

    /* This removes the container's side margins */
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    margin-top: 0 !important;
    padding: 0 !important;

    height: 100vh !important;
    min-height: 700px !important;

    overflow: hidden !important;
}

/* Hero card */
main.container .hero .hero-card {
    display: block !important;
    position: relative !important;

    width: 100vw !important;
    max-width: none !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 0 !important;
    overflow: hidden !important;
}

/* Banner */
main.container .hero .hero-card img {
    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover !important;
    object-position: center center !important;
}

/* Dark overlay */
main.container .hero .hero-card::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.70) 0%,
            rgba(0,0,0,.35) 45%,
            rgba(0,0,0,.05) 100%
        ) !important;

    z-index: 1 !important;
}

/* Text */
main.container .hero .hero-card .shade {
    position: absolute !important;
    z-index: 2 !important;

    left: 8% !important;
    bottom: 18% !important;

    max-width: 750px !important;

    color: white !important;
}

/* Mobile */
@media (max-width: 768px) {

    main.container .hero {
        height: 100svh !important;
        min-height: 600px !important;
    }

    main.container .hero .hero-card .shade {
        left: 6% !important;
        right: 6% !important;
        bottom: 12% !important;
    }
}

