/*
Theme Name: MoCAA Puntland
Theme URI: http://example.com/mocaa
Author: Antigravity AI
Author URI: http://example.com
Description: Official WordPress Theme for the Ministry of Civil Aviation and Airports, Puntland State of Somalia.
Version: 1.0.0
Text Domain: mocaa
*/

:root {
  --primary-color: #0b1f3c; /* Dark Navy */
  --secondary-color: #ffd700; /* Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --font-family: 'Inter', sans-serif;
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Header */
.site-header {
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-logo {
  height: 60px;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.logo-text p {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

.main-navigation ul {
  display: flex;
  gap: 30px;
}

.main-navigation a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-navigation a:hover,
.main-navigation a.active {
  color: var(--primary-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border-radius: 20px;
  padding: 5px 15px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  padding: 5px;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: #08162b;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.3);
  transition: var(--transition);
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: var(--text-light);
}

.btn-accent {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-accent:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: var(--text-light);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(11, 31, 60, 0.7), rgba(11, 31, 60, 0.9));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  animation: fadeIn 1s ease-out;
}

.hero-badge {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 25px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 40px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Features/Vision/Mission Section */
.features-section {
  padding: -80px 0 80px;
  position: relative;
  z-index: 10;
  margin-top: -60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(11, 31, 60, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.feature-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* Technical Departments Section */
.departments-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 50px;
  text-transform: uppercase;
  font-weight: 800;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.dept-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.dept-card:hover {
  transform: translateY(-5px);
  border-color: rgba(11, 31, 60, 0.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.dept-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  background: #f0f4f8;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dept-info h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.dept-info p {
  font-size: 0.9rem;
  color: #666;
}

/* Leadership Section */
.leadership-section {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.leadership-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

.leadership-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 10px;
}

.leadership-header p {
  color: #666;
  font-size: 1.1rem;
}

.view-all-link {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-all-link:hover {
  text-decoration: underline;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.leader-card {
  text-align: center;
}

.leader-image {
  width: 100%;
  aspect-ratio: 1;
  background-color: #e5e9f0;
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.leader-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.leader-card:hover .leader-image img {
  transform: scale(1.05);
}

.leader-card h4 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.leader-card p {
  font-size: 0.9rem;
  color: #666;
}

/* Two Column Section (News & Tenders) */
.news-tenders-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(0,0,0,0.05);
  padding-bottom: 15px;
}

.col-header h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card {
  display: flex;
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.news-img {
  width: 150px;
  flex-shrink: 0;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.news-content h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text-dark);
}

.news-content p {
  font-size: 0.9rem;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tenders Table */
.tenders-table {
  width: 100%;
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  border-collapse: collapse;
}

.tenders-table th {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: left;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

.tenders-table td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.95rem;
}

.tenders-table tr:last-child td {
  border-bottom: none;
}

.tenders-table tr:hover {
  background-color: rgba(0,0,0,0.01);
}

.deadline-urgent {
  color: #e74c3c;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 50px;
}

.footer-logo h2 {
  color: var(--text-light);
  font-size: 1.2rem;
  line-height: 1.2;
}

.footer-about p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.footer-widget h4 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}

.contact-info i {
  color: var(--secondary-color);
  margin-top: 5px;
}

.newsletter-form {
  margin-top: 15px;
}

.newsletter-form input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 4px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: var(--text-light);
  margin-bottom: 10px;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form button {
  width: 100%;
  padding: 12px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: #e6c200;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .main-navigation ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .features-grid, .departments-grid, .two-col-grid {
    grid-template-columns: 1fr;
  }
  
  .features-section {
    margin-top: 40px;
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .leadership-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
}
