:root {
  --theme-primary-color: #58a6ff;
  --theme-secondary-color: #3fb950;
  --theme-white: #ffffff;
  --theme-background-color: #0d1117;
  --theme-background-light: #f8f9fa;
  --theme-background-medium: #E8F5E8;
  --theme-text-color: #c9d1d9;
  --theme-text-dark: #f0f6fc;
  --theme-text-medium: #8b949e;
  --theme-text-light: #484f58;
  --theme-font-family: Poppins, sans-serif;
  --theme-heading-font-family: Nunito, sans-serif;
}

/* Base CSS */
/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800&family=Nunito:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties (Variables) - Integrated with Theme Config */
:root {
  /* Theme Colors - These will be overridden by Theme config */
  --white-color: #ffffff;
  --primary-color: var(--theme-primary-color, #1e3d78);
  --secondary-color: var(--theme-secondary-color, #3D405B);
  --background-color: var(--theme-background-color, #F4F1DE);
  --section-bg-color: var(--theme-background-color, #F4F1DE);
  --custom-btn-bg-color: #F2CC8F;
  --custom-btn-bg-hover-color: #E07A5F;
  --dark-color: #000000;
  --p-color: #717275;
  --link-hover-color: #F2CC8F;

  /* Text colors from theme */
  --text-dark: var(--theme-text-dark, #1A1A1A);
  --text-medium: var(--theme-text-medium, #6B6B6B);
  --text-light: var(--theme-text-light, #8A8A8A);

  /* Button and border colors */
  --primary-dark: #1E3D2A;
  --border-color: #e5e5e5;
  --error-color: #dc2626;
  --surface-color: #f9f9f9;
  --phone-frame-color: #1a1a1a;
  --phone-frame-highlight: #2a2a2a;
  --primary-color-light: rgba(45, 90, 61, 0.1);

  /* Typography */
  --body-font-family: 'DM Sans', sans-serif;
  --font-family: var(--body-font-family);
  --heading-font-family: var(--body-font-family);

  /* Font Sizes */
  --h1-font-size: 42px;
  --h2-font-size: 36px;
  --h3-font-size: 28px;
  --h4-font-size: 24px;
  --h5-font-size: 22px;
  --h6-font-size: 20px;
  --p-font-size: 18px;
  --menu-font-size: 16px;
  --btn-font-size: 14px;
  --copyright-font-size: 12px;

  /* Border Radius */
  --border-radius-large: 100px;
  --border-radius-medium: 20px;
  --border-radius-small: 10px;

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Text Color */
  --text-color: var(--dark-color);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family, sans-serif);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--background-color, #fff);
  color: var(--text-color, #333);
  font-family: var(--body-font-family);
}

/* Typography */
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font-family, var(--font-family, sans-serif));
  font-weight: var(--font-weight-medium);
  letter-spacing: -1px;
  line-height: 1.2;
}

h1 {
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: var(--h2-font-size);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
  overflow-wrap: break-word;
}

ul li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

a,
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover-color);
}

b,
strong {
  font-weight: var(--font-weight-bold);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

/* Global Section Styles */
.section-bg {
  background-color: var(--section-bg-color);
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-overlay {
  content: "";
  background: rgba(0, 0, 0, 0) linear-gradient(rgba(39, 48, 83, 0.01) 0%, rgb(39, 48, 83) 100%) repeat scroll 0% 0%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

::selection {
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* Global Button Styles */
.custom-btn {
  background: var(--custom-btn-bg-color);
  border: 2px solid transparent;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-bold);
  line-height: normal;
  transition: all 0.3s;
  padding: 10px 20px;
}

.custom-btn:hover {
  background: var(--custom-btn-bg-hover-color);
  color: var(--white-color);
}

.custom-border-btn {
  background: transparent;
  border: 2px solid var(--custom-btn-bg-color);
  color: var(--custom-btn-bg-color);
}

.custom-border-btn:hover {
  background: var(--custom-btn-bg-color);
  border-color: transparent;
  color: var(--white-color);
}

.custom-btn-bg-white {
  border-color: var(--white-color);
  color: var(--white-color);
}

.custom-btn-group .link {
  color: var(--white-color);
  font-weight: var(--font-weight-medium);
}

.custom-btn-group .link:hover {
  color: var(--link-hover-color);
}

/* Global Form Styles */
.custom-form .form-control {
  border-radius: var(--border-radius-large);
  border-width: 2px;
  box-shadow: none;
  color: var(--p-color);
  margin-bottom: 20px;
  padding: 10px;
  padding-left: 20px;
  outline: none;
}

.custom-form .form-control:focus,
.custom-form .form-control:hover {
  border-color: var(--dark-color);
}

.form-floating>label {
  padding-left: 20px;
}

.custom-form button[type="submit"] {
  background: var(--custom-btn-bg-color);
  border: none;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-medium);
  transition: all 0.3s;
  margin-bottom: 0;
  padding-left: 10px;
}

.custom-form button[type="submit"]:hover,
.custom-form button[type="submit"]:focus {
  background: var(--custom-btn-bg-hover-color);
  border-color: transparent;
}

/* Responsive Typography */
@media screen and (max-width: 991px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  h4 {
    font-size: 20px;
  }

  h5 {
    font-size: 18px;
  }

  h6 {
    font-size: 16px;
  }

  .section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .hero-section {
    position: relative;
    top: 82px;
    margin-bottom: 82px;
  }

  .events-listing-section {
    margin-bottom: 50px;
  }

  .events-detail-section .custom-block-info {
    padding: 40px;
  }

  .events-detail-info {
    padding: 35px 25px;
  }

  .contact-info-item {
    width: 60%;
  }

  .events-detail-section .contact-info-item {
    width: 70%;
  }

  .section-bg-image {
    margin-bottom: 0;
  }

  .section-bg-image-block {
    padding: 30px;
  }

  .site-footer {
    padding-top: 20px;
    padding-bottom: 100px;
  }
}

@media screen and (max-width: 480px) {
  .navbar-brand {
    font-size: var(--p-font-size);
  }

  .navbar-brand-icon {
    width: 30px;
    height: 30px;
  }

  .navbar-brand-icon::after {
    top: 5px;
  }

  .section-bg-image-block {
    padding: 30px;
  }

  .contact-info-item {
    width: 72%;
  }
}

@media screen and (max-width: 360px) {
  .custom-btn {
    font-size: 12px;
    padding: 4px 12px;
  }
}


/* Component CSS: toolsgrid */
.tools-grid-section {
    min-height: 100vh;
    background: var(--background-color);
    padding: 80px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tools-container {
    width: 100%;
    max-width: 800px;
}

.tools-header {
    text-align: center;
    margin-bottom: 48px;
}

.tools-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.tools-header p {
    font-size: 1rem;
    color: var(--text-medium);
    margin: 0;
}

.tools-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-card {
    --tool-accent: var(--primary-color);

    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: color-mix(in srgb, var(--white) 8%, var(--background-color));
    border: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.tool-card:hover {
    background: color-mix(in srgb, var(--white) 12%, var(--background-color));
    border-color: var(--tool-accent);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--tool-accent) 15%, transparent);
    transform: translateY(-1px);
}

.tool-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--tool-accent) 12%, transparent);
    border-radius: 10px;
    color: var(--tool-accent);
}

.tool-icon svg {
    width: 22px;
    height: 22px;
}

.tool-content {
    flex: 1;
    min-width: 0;
}

.tool-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 2px 0;
}

.tool-content p {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin: 0;
}

.tool-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--text-light);
    transition: all 0.15s ease;
}

.tool-card:hover .tool-arrow {
    color: var(--tool-accent);
    transform: translateX(3px);
}

.tool-arrow svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 600px) {
    .tools-grid-section {
        padding: 48px 16px;
    }

    .tools-header h1 {
        font-size: 1.5rem;
    }

    .tool-card {
        padding: 16px 20px;
    }

    .tool-icon {
        width: 40px;
        height: 40px;
    }

    .tool-icon svg {
        width: 20px;
        height: 20px;
    }
}


/* Component CSS: footer3 */
.footer3 {
    background-color: #fff;
    padding: 2rem 0;
    border-top: 1px solid #eee;
}

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

.footer3-logo {
    margin-bottom: 1rem;
}

.footer3-logo a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.footer3-nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer3-nav-link {
    text-decoration: none;
    color: #6c757d;
}

.footer3-nav-link:hover {
    color: var(--primary-color);
}

.footer3-copy {
    font-size: 0.9rem;
    color: #6c757d;
}