/*
Theme Name: Cao đẳng Phương Đông Đà Nẵng
Description: Landing Page Tuyển sinh ngành Công nghệ Kỹ thuật Ô tô
Author: Antigravity
Version: 1.0
*/

:root {
  --primary-blue: #0056b3;
  --primary-blue-dark: #003d82;
  --primary-blue-light: #e6f0fa;
  --primary-red: #e60000;
  --primary-red-dark: #b30000;
  --text-dark: #1f2937;
  --text-light: #4b5563;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-blue: 0 4px 14px 0 rgba(0, 86, 179, 0.39);
  --shadow-red: 0 4px 14px 0 rgba(230, 0, 0, 0.39);
  --transition: all 0.3s ease;
  --content-width: 1200px;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

a:hover {
  color: var(--primary-red);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Utilities */
.text-center { text-align: center; }
.text-blue { color: var(--primary-blue); }
.text-red { color: var(--primary-red); }
.bg-white { background-color: var(--bg-white); }
.bg-blue { background-color: var(--primary-blue); color: white; }
.bg-light-blue { background-color: var(--primary-blue-light); }
.section-padding { padding: 80px 0; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-red);
  color: white !important;
  box-shadow: var(--shadow-red);
  animation: pulse-red 2s infinite;
}

.btn-primary:hover {
  background-color: var(--primary-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(230, 0, 0, 0.5);
}

.btn-secondary {
  background-color: var(--primary-blue);
  color: white !important;
  box-shadow: var(--shadow-blue);
}

.btn-secondary:hover {
  background-color: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(0, 86, 179, 0.5);
}

@keyframes pulse-red {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230, 0, 0, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(230, 0, 0, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230, 0, 0, 0); }
}

/* Header */
.site-header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
  width: auto;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--primary-blue-light);
}

.hero-banner {
  width: 100%;
}

.hero-banner img {
  width: 100%;
  object-fit: cover;
  min-height: 400px;
}

.hero-content {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 90%;
  max-width: 800px;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* Section Headings */
.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  display: inline-block;
  padding-bottom: 15px;
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-red);
  border-radius: 2px;
}

/* Giới thiệu */
.intro-section {
  padding-top: 100px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.intro-image img {
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}

.intro-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.feature-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--primary-blue);
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-red);
}

.feature-icon {
  font-size: 2rem;
  color: var(--primary-red);
  margin-bottom: 10px;
}

.feature-box h4 {
  color: var(--primary-blue);
  margin-bottom: 5px;
}

/* Kiến thức đào tạo */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.knowledge-item {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 15px;
  transition: var(--transition);
  border-left: 4px solid var(--primary-blue);
}

.knowledge-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-red);
}

.k-icon {
  color: var(--primary-blue);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Nghề nghiệp */
.career-section {
  background-color: var(--primary-blue-light);
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.career-card {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(0, 86, 179, 0.05);
}

.career-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  transition: all 0.4s ease;
  z-index: -1;
  border-radius: 20px 20px 0 0;
}

.career-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 86, 179, 0.15);
  border-color: transparent;
}

.career-card:hover::before {
  height: 100%;
  border-radius: 20px;
}

.career-icon-wrapper {
  width: 80px;
  height: 80px;
  background: rgba(0, 86, 179, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 2.5rem;
  margin-bottom: 25px;
  transition: all 0.4s ease;
}

.career-card:hover .career-icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.career-content h3 {
  color: var(--primary-blue);
  font-size: 1.4rem;
  margin-bottom: 15px;
  transition: all 0.4s ease;
}

.career-card:hover .career-content h3 {
  color: white;
}

.career-content p {
  color: var(--text-light);
  line-height: 1.7;
  transition: all 0.4s ease;
}

.career-card:hover .career-content p {
  color: rgba(255, 255, 255, 0.9);
}

/* Mid Banners */
.mid-banner {
  width: 100%;
}

/* Lợi thế */
.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.advantage-item {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 25px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.advantage-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.adv-number {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
}

.adv-content h3 {
  color: var(--primary-red);
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.adv-content ul {
  padding-left: 20px;
  margin-top: 10px;
}

.adv-content li {
  margin-bottom: 8px;
  color: var(--text-light);
}

/* Ngành nghề */
.programs-section {
  background-color: var(--bg-white);
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 25px;
  background: var(--bg-light);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

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

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.program-item {
  background: var(--bg-light);
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.program-item:hover {
  background: var(--primary-blue-light);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.program-item i {
  color: var(--primary-red);
}

/* CTA & Footer */
.cta-section {
  background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
  color: white;
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  color: white;
}

.cta-section .section-title::after {
  background-color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
  background: white;
  border-radius: 20px;
  padding: 40px;
  color: var(--text-dark);
}

.contact-info {
  text-align: left;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.qr-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  border: 2px dashed var(--border-color);
  border-radius: 15px;
}

.qr-code img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.site-footer {
  background-color: var(--text-dark);
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 1.8rem; }
  .intro-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; padding: 20px; }
  .advantage-item { flex-direction: column; text-align: center; }
  .adv-number { margin: 0 auto; }
}
