/* ==========================================================================
   #VARIABLES
   ========================================================================== */
:root {
    /* Colors */
    --primary-color: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary-color: #4cc9f0;
    --text-color: #2b2d42;
    --text-light: #8d99ae;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --spacing-unit: 1rem;
    --container-width: 1200px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ==========================================================================
   #BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* ==========================================================================
   #HEADER STYLES
   ========================================================================== */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    min-height: 80px;
}

/* Logo/Site Title */
.site-branding {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 30px;
    position: relative;
    z-index: 1001;
}

.menu-toggle .menu-icon,
.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle .menu-icon::before {
    transform: translateY(-8px);
}

.menu-toggle .menu-icon::after {
    transform: translateY(5px);
}

.menu-toggle.active .menu-icon {
    background-color: transparent;
}

.menu-toggle.active .menu-icon::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-icon::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
    margin-left: var(--spacing-unit);
}

.main-navigation a {
    display: block;
    padding: 1.5rem 0.75rem;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--primary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    width: 100%;
}

/* Submenu */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow);
    z-index: 100;
    border-radius: 4px;
    padding: 0.5rem 0;
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
    display: block;
}

.main-navigation .sub-menu li {
    margin: 0;
    width: 100%;
}

.main-navigation .sub-menu a {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.main-navigation .sub-menu a::after {
    display: none;
}

/* ==========================================================================
   #HERO SECTION
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, #f5f7ff 0%, #f9faff 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding: 2rem 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(67, 97, 238, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.15);
}

.hero-image {
    flex: 1;
    max-width: 500px;
    position: relative;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 1rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

.hero-placeholder {
    width: 100%;
    padding-bottom: 66.67%;
    background: linear-gradient(135deg, #e0e7ff 0%, #eef2ff 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 1rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* ==========================================================================
   #FOOTER STYLES
   ========================================================================== */
.site-footer {
    background-color: #1a1a2e;
    color: #e6e6e6;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Footer Widgets */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-widget:last-child {
    margin-bottom: 0;
}

.footer-widget .widget-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: #b3b3b3;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Footer Info */
.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #b3b3b3;
}

.copyright {
    margin-bottom: 1rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-left: 1.5rem;
}

.footer-menu a {
    color: #b3b3b3;
    text-decoration: none;
}

.footer-menu a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   #RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 991px) {
    /* Header */
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 40px;
        transition: var(--transition);
        overflow-y: auto;
        z-index: 1000;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation li {
        margin: 0;
        width: 100%;
    }
    
    .main-navigation a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-navigation a::after {
        display: none;
    }
    
    .main-navigation .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        padding: 0.5rem 0 0.5rem 1rem;
        background-color: transparent;
    }
    
    .main-navigation .sub-menu a {
        padding: 0.5rem 0;
        font-size: 0.9em;
    }
    
    /* Footer */
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    /* Header */
    .header-container {
        padding: 0 15px;
    }
    
    .site-branding {
        flex: 1;
    }
    
    /* Footer */
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .site-info {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-menu {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .footer-menu li {
        margin: 0 0.75rem;
    }
}

/* ==========================================================================
   #HELPER CLASSES
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* ==========================================================================
   #WORDPRESS DEFAULT CLASSES
   ========================================================================== */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

/* ==========================================================================
   #LATEST HIGHLIGHTS
   ========================================================================== */
.latest-highlights {
  padding: 5rem 0;
  background-color: #f9fafc;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  padding: 0 1.5rem;
}

.section-title {
  font-size: 2.5rem;
  color: #1a365d;
  margin-bottom: 0.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  border-radius: 2px;
}

.section-subtitle {
  color: #64748b;
  font-size: 1.1rem;
  margin-top: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.highlight-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-media {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #f1f5f9;
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 2.5rem;
}

.category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #4f46e5;
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-meta i {
  margin-right: 0.35rem;
  color: #94a3b8;
  font-size: 0.9em;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title a:hover {
  color: #4f46e5;
}

.card-excerpt {
  color: #475569;
  margin: 0 0 1.5rem;
  line-height: 1.7;
  flex-grow: 1;
  font-size: 0.98rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: #4f46e5;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
  width: fit-content;
  font-size: 0.95rem;
}

.read-more i {
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
  font-size: 0.8em;
}

.read-more:hover {
  color: #4338ca;
}

.read-more:hover i {
  transform: translateX(3px);
}

.no-posts {
  text-align: center;
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  color: #64748b;
  font-size: 1.1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin: 0 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .latest-highlights {
    padding: 4rem 0;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    max-width: 90%;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  .card-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .highlights-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .highlight-card {
    max-width: 100%;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .post-meta {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .latest-highlights {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  .card-content {
    padding: 1.25rem;
  }
  
  .card-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }
  
  .card-excerpt {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }
}
