
.dropdown-toggle, .nav-link {
    font-size: 1rem;
}

.dropdown-menu .dropdown-item {
    font-size: 1rem;
}

/* Variables */
:root {
    --altiora-light-blue: #E0F2FE;
    --altiora-medium-blue: #90CDF4;
    --altiora-deep-blue: #3182CE;
    --altiora-navy: #2A4365;
    --altiora-bg: #F8FAFC;
    --altiora-card-bg: #FFFFFF;
    --altiora-text: #1E293B;
    --altiora-text-light: #4B5563;
    --altiora-footer-text: #F7FAFC;
    --altiora-footer-hover: #FFFFFF;
}

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

body {
    background-color: var(--altiora-bg);
    color: var(--altiora-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

.section {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

.section-light {
    background-color: var(--altiora-bg);
}

.section-white {
    background-color: var(--altiora-card-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--altiora-deep-blue);
    font-weight: bold;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3.75rem;
    }
}

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

@media (min-width: 768px) {
    .md-text-left {
        text-align: left;
    }
}

.font-bold {
    font-weight: bold;
}

.text-gradient {
    background: linear-gradient(
        90deg,
        var(--altiora-deep-blue),
        var(--altiora-medium-blue)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

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

.logo-link {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 3rem;
    width: auto;
    margin-right: 0.75rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.desktop-menu {
    display: none;
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
        align-items: center;
    }

    .desktop-menu > * {
        margin-left: 1.5rem;
    }
}

.nav-link {
    color: var(--altiora-text);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--altiora-medium-blue);
}

.nav-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--altiora-text);
    transition: color 0.3s ease;
}

.dropdown-toggle:hover {
    color: var(--altiora-medium-blue);
}

.dropdown-icon {
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
}

.dropdown-menu {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 8rem;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--altiora-text);
}

.dropdown-item:hover {
    background-color: #f1f5f9;
}

.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    color: var(--altiora-text);
    cursor: pointer;
}

.mobile-menu-button:hover {
    color: var(--altiora-medium-blue);
}

.menu-icon {
    width: 1.5rem;
    height: 1.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.mobile-menu.active {
    max-height: 500px;
    opacity: 1;
}

.mobile-menu-items {
    padding: 1rem 0 0.75rem;
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    color: var(--altiora-text);
    font-size: 1rem; /* Ensure consistent font size */
    font-weight: 400; /* Normal weight */
}

.mobile-nav-link:hover {
    color: var(--altiora-medium-blue);
}

.mobile-dropdown {
    width: 100%;
}

.mobile-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 0.5rem 0;
    color: var(--altiora-text);
    cursor: pointer;
    font-size: 1rem; /* Match other navigation items */
    text-align: left;
}

.mobile-dropdown-toggle:hover {
    color: var(--altiora-medium-blue);
}

.mobile-submenu {
    padding-left: 1.25rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.mobile-submenu.hidden {
    display: none;
}

.dropdown-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

/* No-JS Warning */
.no-js-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ef4444;
    color: white;
    padding: 1rem;
    text-align: center;
    z-index: 100;
}

/* Wave gradient background */
.wave-bg {
    position: relative;
    background: linear-gradient(
        180deg,
        var(--altiora-light-blue) 0%,
        var(--altiora-medium-blue) 50%,
        var(--altiora-deep-blue) 100%
    );
    color: var(--altiora-text);
    padding-top: 7rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .wave-bg {
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
}

/* Hero Section */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.hero-text {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-text {
        width: 50%;
        text-align: left;
        margin-bottom: 0;
    }
}

.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .hero-image {
        width: 50%;
        margin-top: 0;
    }
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--altiora-deep-blue);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: 2px solid var(--altiora-deep-blue);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--altiora-light-blue);
    color: var(--altiora-deep-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(144, 205, 244, 0.25);
}

/* Service cards */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.service-card {
    background: var(--altiora-card-bg);
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--altiora-medium-blue);
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--altiora-deep-blue);
    margin-bottom: 1rem;
}

.service-text {
    color: var(--altiora-text-light);
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.about-image-container {
    width: 100%;
    margin-bottom: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .about-image-container {
        width: 50%;
        margin-bottom: 0;
    }
}

.about-text-container {
    width: 100%;
}

@media (min-width: 768px) {
    .about-text-container {
        width: 50%;
        padding-left: 3rem;
    }
}

.riley-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.feature-list {
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.feature-icon {
    color: var(--altiora-medium-blue);
    margin-right: 0.5rem;
}

/* Contact Form */
.contact-form {
    max-width: 32rem;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--altiora-text);
}

.form-input {
    width: 100%;
    background: var(--altiora-card-bg);
    border: 2px solid #E2E8F0;
    border-radius: 0.5rem;
    color: var(--altiora-text);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--altiora-medium-blue);
    box-shadow: 0 0 0 3px rgba(144, 205, 244, 0.25);
    outline: none;
}

textarea.form-input {
    min-height: 8rem;
    resize: vertical;
}

.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.form-message.success {
    background-color: #dcfce7;
    color: #166534;
}

.form-message.error {
    background-color: #fee2e2;
    color: #b91c1c;
}

.hidden {
    display: none;
}

/* Schedule Section */
.calendly-container {
    max-width: 48rem;
    margin: 0 auto;
}

.calendly-inline-widget {
    min-width: 100%;
    height: 850px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
.site-footer {
    background-color: var(--altiora-navy);
    color: var(--altiora-footer-text);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.footer-logo {
    height: 4rem;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-heading {
    color: var(--altiora-light-blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--altiora-footer-text);
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-link {
    color: var(--altiora-footer-text);
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: var(--altiora-footer-hover);
    transform: translateX(0.25rem);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
}

.footer-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--altiora-medium-blue);
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.address-icon {
    margin-top: 0.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--altiora-footer-text);
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--altiora-medium-blue);
}

.social-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.legal-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.legal-link {
    color: var(--altiora-footer-text);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.legal-link:hover {
    color: var(--altiora-medium-blue);
}

.divider {
    color: #4a5568;
}

.disclaimer-text {
    max-width: 48rem;
    margin: 0 auto 1.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
    line-height: 1.5;
}

.copyright {
    font-size: 0.875rem;
    opacity: 0.8;
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes waveFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.wave-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--altiora-light-blue),
        var(--altiora-medium-blue),
        var(--altiora-deep-blue),
        var(--altiora-medium-blue),
        var(--altiora-light-blue)
    );
    background-size: 200% auto;
    animation: waveFlow 15s linear infinite;
}
/* Add these styles to your style.css file */

/* Mission page specific styles */
.mission-content {
    max-width: 64rem;
    margin: 0 auto;
}

.mission-statement {
    margin-bottom: 4rem;
}

.mission-statement p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.mission-statement p:last-child {
    margin-bottom: 0;
}

.cta-box {
    background-color: var(--altiora-light-blue);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box h3 {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--altiora-deep-blue);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .cta-box h3 {
        font-size: 2rem;
    }
}

.cta-box p {
    color: var(--altiora-deep-blue);
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}
/* Add these styles to your style.css file */

/* Error page specific styles */
.error-content {
    max-width: 64rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .error-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.error-illustration {
    width: 100%;
    max-width: 20rem;
    text-align: center;
}

@media (min-width: 768px) {
    .error-illustration {
        width: 30%;
    }
}

.error-illustration img {
    width: 100%;
    height: auto;
}

.error-text {
    width: 100%;
}

@media (min-width: 768px) {
    .error-text {
        width: 70%;
        padding-left: 2rem;
    }
}

.error-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--altiora-deep-blue);
}

@media (min-width: 768px) {
    .error-text h2 {
        font-size: 1.75rem;
    }
}

.error-text p {
    margin-bottom: 1.5rem;
    color: var(--altiora-text-light);
}

.error-actions {
    margin: 2rem 0;
}

.error-actions h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--altiora-deep-blue);
}

.error-link {
    color: var(--altiora-deep-blue);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.error-link:hover {
    color: var(--altiora-medium-blue);
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Add these styles to your style.css file */

/* Disclaimer page specific styles */
.disclaimer-content {
    max-width: 64rem;
    margin: 0 auto;
    padding-top: 3rem;
}

.disclaimer-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.disclaimer-card {
    background-color: var(--altiora-card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.disclaimer-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--altiora-deep-blue);
}

.disclaimer-card p {
    color: var(--altiora-text-light);
    margin-bottom: 1rem;
}

.disclaimer-card p:last-child {
    margin-bottom: 0;
}

/* Add these styles to your style.css file */

/* Login page styles */
.login-card {
  max-width: 28rem;
  margin: 0 auto;
  background-color: var(--altiora-card-bg);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.login-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--altiora-deep-blue);
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-error {
  margin-bottom: 1rem;
  text-align: center;
  color: #e53e3e;
}

.login-form {
  width: 100%;
}

.login-button {
  width: 100%;
}
/* Article Styles - Add to your style.css file */

/* Article Layout */
.article-content {
  max-width: 64rem;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 3rem;
}

.article-header h1 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--altiora-deep-blue);
  margin-bottom: 1rem;
}

.article-intro {
  font-size: 1.125rem;
  color: var(--altiora-text-light);
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--altiora-text);
}

.article-section {
  margin-bottom: 3rem;
}

.article-section h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--altiora-deep-blue);
  margin-bottom: 1rem;
}

.article-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.article-section p {
  color: var(--altiora-text-light);
  margin-bottom: 1.5rem;
}

/* Article Links */
.article-link {
  color: var(--altiora-deep-blue);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.article-link:hover {
  color: var(--altiora-medium-blue);
}

/* Lists */
.feature-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-list li {
  color: var(--altiora-text-light);
  margin-bottom: 0.75rem;
}

.simple-list {
  list-style-type: none;
  margin-bottom: 1.5rem;
}

.simple-list li {
  color: var(--altiora-text-light);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.25rem;
}

.simple-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--altiora-deep-blue);
}

/* Info Boxes */
.info-box {
  background-color: #f8fafc;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.info-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.info-card {
  text-align: center;
  padding: 0.75rem;
  background-color: white;
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-card-lg {
  padding: 1.5rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-card-title {
  font-weight: bold;
  color: var(--altiora-deep-blue);
}

.info-card-content {
  color: var(--altiora-text-light);
}

.info-card-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--altiora-text-light);
}

/* CTA Section */
.cta-section {
  background-color: var(--altiora-deep-blue);
  color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 3rem;
}

.cta-section h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: white;
}

.cta-section p {
  margin-bottom: 1.5rem;
  color: white;
}

.cta-section .btn-primary {
  display: inline-flex;
  align-items: center;
  background-color: white;
  color: var(--altiora-deep-blue);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.cta-section .btn-primary:hover {
  background-color: var(--altiora-light-blue);
  transform: translateY(-2px);
}

.arrow-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.5rem;
}

/* Related Articles */
.article-related {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.article-related h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: white;
}

.related-list {
  list-style: none;
}

.related-list li {
  margin-bottom: 0.5rem;
}

.related-list .article-link {
  color: white;
  text-decoration: underline;
}

.related-list .article-link:hover {
  color: var(--altiora-light-blue);
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .article-header h1 {
    font-size: 2.5rem;
  }

  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Article Index Page Styles */
.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--altiora-deep-blue);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--altiora-deep-blue);
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-card-link {
  display: block;
  text-decoration: none;
  height: 100%;
  transition: transform 0.3s ease;
}

.article-card-link:hover {
  transform: translateY(-5px);
}

.article-card {
  background-color: var(--altiora-card-bg);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.article-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.article-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--altiora-deep-blue);
  margin-bottom: 1rem;
}

.article-card p {
  color: var(--altiora-text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more-link {
  color: var(--altiora-deep-blue);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.article-card:hover .read-more-link {
  color: var(--altiora-medium-blue);
}

.read-more-link .arrow-icon {
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.article-card:hover .read-more-link .arrow-icon {
  transform: translateX(5px);
}
/* Mobile-friendly adjustments for articles */

/* General mobile adjustments */
@media (max-width: 767px) {
  .section-white {
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .article-content {
    padding: 0 1rem;
  }

  .article-header h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .article-intro {
    font-size: 1rem;
  }
}

/* Info grids and cards for mobile */
@media (max-width: 767px) {
  .info-grid, 
  .info-grid-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .info-card,
  .info-card-lg {
    padding: 1rem;
  }

  .info-box {
    padding: 1rem;
    margin-bottom: 1rem;
  }
}

/* CTA section mobile adjustments */
@media (max-width: 767px) {
  .cta-section {
    padding: 1.5rem;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }
}

/* Fix for article cards on the index page */
@media (max-width: 767px) {
  .article-card {
    padding: 1.25rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .article-section {
    margin-bottom: 2rem;
  }
  
  /* Fix for article pages with fixed nav overlap */
  .templates-articles .section-white,
  .login-page .section-white {
    padding-top: 135px; /* Increased padding to better clear the fixed nav */
  }
}

/* Lists on mobile */
@media (max-width: 767px) {
  .feature-list,
  .simple-list {
    padding-left: 0.5rem;
  }

  .feature-list li,
  .simple-list li {
    margin-bottom: 0.5rem;
  }
}

/* Additional spacing for readability on mobile */
@media (max-width: 767px) {
  .article-section {
    margin-bottom: 2rem;
  }

  .article-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .article-section h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
}

/* Fix article spacing */
.section-white {
  padding-top: 5rem;
}

@media (min-width: 768px) {
  .section-white {
    padding-top: 7rem;
  }
}
/* Make links in CTA section visible against dark background */
.cta-section .article-link {
  color: var(--altiora-light-blue); /* Or another light color that contrasts with dark blue */
  text-decoration: underline;
  font-weight: 600; /* Optional: make links more visible */
}

.cta-section .article-link:hover {
  color: white; /* Make links turn white on hover for a nice effect */
  text-decoration: underline;
}
/* Styles for the "See Also" section */
/* See Also Section */
.see-also {
  background-color: var(--altiora-bg); /* Matches site background or use var(--altiora-card-bg) if preferred */
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 8px;
  border: 1px solid #E2E8F0; /* Soft border to match other card elements */
}

.see-also h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--altiora-deep-blue);
}

.see-also-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* Space between items */
}

.see-also-item {
  flex: 1 1 calc(33.333% - 1rem); /* Three items per row on larger screens */
  min-width: 200px;
  background-color: var(--altiora-card-bg);
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 1rem;
  text-decoration: none;
  color: var(--altiora-text);
  transition: box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.see-also-item:hover {
  background-color: var(--altiora-light-blue); /* Soft hover color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--altiora-deep-blue); /* Make text pop on hover */
}

.see-also-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--altiora-deep-blue); /* Base text color */
}

/* Responsive tweak: stack items on smaller screens */
@media (max-width: 767px) {
  .see-also-item {
    flex: 1 1 100%;
  }
}

@media (max-width: 767px) {
  .section-white {
    padding-top: 120px; /* Increased padding to better clear the fixed nav */
  }
}
/* Mobile-friendly table styles */
.table-responsive {
overflow-x: auto;
margin-bottom: 1.5rem;
-webkit-overflow-scrolling: touch;
}
.table-responsive table {
min-width: 100%;
border-collapse: collapse;
}
.table-responsive th,
.table-responsive td {
padding: 0.75rem;
text-align: left;
border: 1px solid #e2e8f0;
}
@media (max-width: 767px) {
.table-responsive th,
.table-responsive td {
padding: 0.5rem;
font-size: 0.875rem;
}
.table-responsive th {
background-color: var(--altiora-light-blue);
}
/* Add horizontal scroll indicator */
.table-responsive:before {
content: '\2190 Scroll \2192';
display: block;
text-align: center;
font-size: 0.8rem;
color: var(--altiora-text-light);
padding: 0.25rem;
margin-bottom: 0.5rem;
}
/* Hide scroll indicator if table fits */
@media (min-width: 768px) {
.table-responsive:before {
display: none;
}
}
}
/* Improve mobile spacing for info cards */
@media (max-width: 767px) {
.info-card-lg {
margin-bottom: 1rem;
}
.info-card-lg h3 {
font-size: 1.25rem;
}
.article-section {
margin-bottom: 2rem;
}
.article-section h2 {
margin-bottom: 1rem;
}
}
/* Ensure proper line wrapping on mobile */
@media (max-width: 767px) {
.info-card-lg p,
.info-card-lg li,
.article-section p {
word-wrap: break-word;
hyphens: auto;
}
}