/*--------------------------------------------------------------
Blog & Portfolio Styles

Hero Section for Subpages
--------------------------------------------------------------*/
.hero-subpage {
    min-height: 95vh;
    background: linear-gradient(135deg, #f0f5fa 0%, #ffffff 100%);
}

.hero-subpage .hero-title {
    font-size: calc(2rem + 1.5vw);
}


/*--------------------------------------------------------------
Project Card Styles
--------------------------------------------------------------*/
.project-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.project-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.project-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #636363;
}

/*--------------------------------------------------------------
Sidebar Title Styles
--------------------------------------------------------------*/
.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-left: 16px;
}

.sidebar-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #E44D2E, #fdac98);
    border-radius: 2px;
}

/*--------------------------------------------------------------
No Results Message
--------------------------------------------------------------*/
.no-results {
    text-align: center;
    padding: 40px 0;
    color: #666;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #E44D2E;
}

/*--------------------------------------------------------------
Headings and Typography
--------------------------------------------------------------*/

h1 {
  font-size: 2.625rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.4;
  font-weight: 570;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 500;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

h5 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

h6 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

/*--------------------------------------------------------------
Link Styling
--------------------------------------------------------------*/
a {
    background: linear-gradient(90deg, #4a6cff, #00c36f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

a:hover {
    text-decoration: none;
    color: #E44D2E;
}

/*--------------------------------------------------------------
Responsive Typography Scaling
--------------------------------------------------------------*/
@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
    h4 { font-size: 18px; }
    h5 { font-size: 16px; }
    h6 { font-size: 15px; }
    body, p { font-size: 15px; }
}

/*--------------------------------------------------------------
Enhanced Table Styles for Blog & Portfolio
--------------------------------------------------------------*/
table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 2rem;
    background: #fff;
    box-shadow: 0 4px 24px rgba(74,137,220,0.08), 0 1.5px 6px rgba(228,77,46,0.04);
    border-radius: 16px;
    overflow: hidden;
    font-size: 1rem;
    transition: box-shadow 0.3s;
}

th,
td {
    padding: 1rem 1.25rem;
    border: none;
    text-align: left;
    font-weight: 500;
    color: #343a40;
    background: none;
}

table thead tr {
    background: linear-gradient(135deg, rgba(74, 108, 255, 0) 0%, rgba(223, 233, 161, 0.6) 70%);
}

table thead th {
    background: transparent;
    color: #fff !important; /* Ensure header text is white */
    font-weight: 700;
    letter-spacing: 0.5px;
}

tr {
    transition: background 0.2s;
}

tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

tbody tr:hover {
    background: linear-gradient(90deg, #fbe1da 0%, #e9efff 100%);
}

td {
    border-bottom: 1px solid #dee2e6;
}

table thead th:first-child {
    border-top-left-radius: 16px;
}

table thead th:last-child {
    border-top-right-radius: 16px;
}

table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 16px;
}

table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}

/*--------------------------------------------------------------
Fallback Table Styles (Legacy or Override)
--------------------------------------------------------------*/
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 2rem;
}

th, td {
    padding: 1rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

thead {
    background-color: #343a40;
    color: #fff;
  }

tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}
