/*
Theme Name: IHC UAE Clone
Theme URI: https://www.ihcuae.com/
Author: Hoji
Author URI: 
Description: Custom WordPress theme based on ihcuae.com design, rewritten with clean CSS for maintainability.
Version: 1.0.0
Text Domain: ihcu
*/

:root {
  --primary-color: #0b1a2d;
  --secondary-color: #163050;
  --accent-color: #c99b50;
  --text-color: #333333;
  --text-light: #ffffff;
  --bg-light: #f5f5f5;
  --bg-dark: #000000;
  
  --font-main: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 30px; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.section { padding: 100px 0; }
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 40px; text-align: center; color: var(--primary-color); }
.section-subtitle { font-size: 1.2rem; text-align: center; color: #666; margin-bottom: 60px; max-width: 800px; margin-left: auto; margin-right: auto;}

/* Header */
.site-header {
  background-color: rgba(11, 26, 45, 0.95);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.site-logo img { height: 40px; width: auto; }
.main-navigation ul { display: flex; gap: 30px; }
.main-navigation a {
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.main-navigation a:hover { color: var(--accent-color); }

/* 1. Hero Video Section */
.hero-video-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.video-background {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}
.video-background iframe {
  width: 100vw;
  height: 56.25vw; /* 16:9 Aspect Ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 Aspect Ratio */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-overlay-gradient {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
  z-index: 2;
}
.hero-video-content {
  position: relative;
  z-index: 3;
  margin-top: -100px;
}
.hero-main-title {
  font-size: 5rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
}
.hero-bottom-bar {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 30px;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 20px;
}
.hero-news-excerpt {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 600px;
}
.hero-news-thumb img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}
.hero-slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.9rem;
}
.dot-line { width: 40px; height: 1px; background: #fff; margin: 0 10px; }
.dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; opacity: 0.5; }
.dot:first-of-type { opacity: 1; }

/* 2. About Section */
.about-hero-section {
  background-color: #fff;
  padding: 120px 0;
}
.about-hero-title {
  font-size: 4rem;
  font-weight: 500;
  color: #000;
  line-height: 1.1;
  margin-bottom: 80px;
  letter-spacing: -1px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 3fr 3fr;
  gap: 50px;
  align-items: start;
  border-top: 1px solid #eee;
  padding-top: 60px;
}
.about-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}
.about-text {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #111;
  margin-bottom: 40px;
}
.btn-outline {
  display: inline-block;
  padding: 10px 30px;
  border: 1px solid #ddd;
  border-radius: 30px;
  color: #000;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.btn-outline:hover { background: #f5f5f5; }
.about-building-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-left: auto;
  display: block;
}
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 80px;
}
.stat-block { padding-right: 20px; }
.stat-label { font-size: 0.85rem; color: #888; text-transform: capitalize; margin-bottom: 10px; }
.stat-value { font-size: 3rem; font-weight: 400; color: #000; letter-spacing: -1px; }
  display: inline-block;
  padding: 15px 35px;
  background-color: var(--accent-color);
  color: var(--text-light);
  font-weight: bold;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}
.btn:hover { background-color: #b58942; transform: translateY(-2px); }

/* Purpose / About */
.purpose-section { background-color: #fff; }
.purpose-text { font-size: 1.8rem; font-weight: 300; line-height: 1.6; color: var(--primary-color); border-left: 5px solid var(--accent-color); padding-left: 30px; }

/* Portfolio */
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 350px;
  display: block; /* Fix inline element ignoring height */
}
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.portfolio-card:hover img { transform: scale(1.1); }
.portfolio-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 30px;
}
.portfolio-title { color: #fff; font-size: 1.5rem; font-weight: 700; margin: 0;}

/* Stats */
.stats-section { background-color: var(--primary-color); color: #fff; text-align: center; }
.stat-item h3 { font-size: 4rem; color: var(--accent-color); font-weight: 800; margin-bottom: 10px; }
.stat-item p { font-size: 1.2rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Leadership */
.leadership-section { background-color: var(--bg-light); }
.leadership-quote { font-size: 1.5rem; font-style: italic; color: #555; line-height: 1.8; margin-bottom: 20px;}
.leadership-author { font-size: 1.1rem; font-weight: 700; color: var(--primary-color); }
.leadership-title { font-size: 0.9rem; color: #888; text-transform: uppercase; }

/* News Archive / Latest News */
.latest-news-section { background-color: #fff; }
.news-header { padding: 150px 0 80px; background-color: var(--primary-color); color: var(--text-light); text-align: center; }
.news-header h1 { font-size: 3rem; }

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1);}
.news-card-img { width: 100%; height: 250px; object-fit: cover; }
.news-card-content { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 0.85rem; color: #888; margin-bottom: 10px; display: block; }
.news-card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 15px; color: var(--primary-color); line-height: 1.4; }
.news-card-excerpt { color: #666; font-size: 0.95rem; margin-bottom: 20px; flex: 1; }
.read-more { color: var(--accent-color); font-weight: bold; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px;}

/* Single News */
.single-news-header { padding: 150px 0 60px; background-color: var(--bg-light); text-align: center; }
.single-news-header .news-date { font-size: 1rem; margin-bottom: 15px; color: var(--accent-color); font-weight: 600;}
.single-news-header h1 { font-size: 2.5rem; color: var(--primary-color); max-width: 900px; margin: 0 auto; line-height: 1.3;}
.single-content { max-width: 800px; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; color: #444; padding: 40px 0; }
.single-content p { margin-bottom: 20px; }
.single-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 30px 0; }

/* Footer */
.site-footer { background-color: var(--primary-color); color: var(--text-light); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-widget h4 { font-size: 1.2rem; margin-bottom: 25px; color: var(--accent-color); text-transform: uppercase; letter-spacing: 1px;}
.footer-widget ul li { margin-bottom: 15px; }
.footer-widget a { color: #aaa; transition: color 0.3s; }
.footer-widget a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); color: #777; font-size: 0.9rem; }

/* Split Sections (Financial Results & MIITE) */
.bg-white {
    background-color: #ffffff;
}
.split-section {
    padding: 100px 0;
}
.split-title {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.1;
    color: #111;
    margin-bottom: 30px;
}
.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin-bottom: 30px;
}
.split-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}
.split-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Social Media Section */
.social-section {
    padding: 100px 0;
    overflow: hidden;
}
.social-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.social-nav {
    display: flex;
    gap: 15px;
}
.social-nav button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #111;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}
.social-nav button:hover {
    background-color: var(--accent-color);
}
.swiper-social-media .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Slider Navigation */
.social-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.social-nav {
    display: flex;
    gap: 10px;
}
.social-prev, .social-next, .news-prev, .news-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0b1a2d;
    color: #fff;
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}
.social-prev:hover, .social-next:hover, .news-prev:hover, .news-next:hover {
    background-color: #c99b50;
}
