:root {
  --theme-primary-color: #2534DE;
  --theme-secondary-color: #6287FF;
  --theme-white: #ffffff;
  --theme-background-color: #F5F6F7;
  --theme-background-light: #f8f9fa;
  --theme-background-medium: #E8F5E8;
  --theme-text-color: #383C40;
  --theme-text-dark: #1a1a2a;
  --theme-text-medium: #6B7280;
  --theme-text-light: #9CA3AF;
  --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: transcriber */
/* Transcriber Component Styles */

.transcriber {
    min-height: 100vh;
    padding: 3rem 1.5rem;
}

.transcriber-container {
    max-width: 720px;
    margin: 0 auto;
}

.transcriber-title {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.03em;
}

.transcriber-subtitle {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-medium);
    font-size: 1.125rem;
}

.transcriber-card {
    background: var(--white-color, #ffffff);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color, #E4E7EB);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
}

/* Dropzone */
.dropzone {
    border: 2px dashed var(--border-color, #E4E7EB);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 1.5rem;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--primary-color);
    background: rgba(37, 52, 222, 0.03);
}

.dropzone-icon {
    width: 48px;
    height: 48px;
    color: var(--text-light, #9CA3AF);
    margin: 0 auto 1rem auto;
    display: block;
}

.dropzone:hover .dropzone-icon,
.dropzone.dragover .dropzone-icon {
    color: var(--primary-color);
}

.dropzone-text {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.dropzone-meta {
    color: var(--text-light, #9CA3AF);
    font-size: 0.875rem;
}

/* File info */
.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--background-color, #F5F6F7);
    border: 1px solid var(--border-color, #E4E7EB);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-color);
}

.file-remove {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-light, #9CA3AF);
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
}

.file-remove:hover {
    color: var(--error-color, #b91c1c);
}

/* Submit button */
.transcriber button#submitBtn {
    background: var(--primary-color, #2534DE);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.transcriber button#submitBtn:hover:not(:disabled) {
    background: var(--primary-color-dark, var(--primary-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-color-shadow, rgba(0, 0, 0, 0.2));
}

.transcriber button#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Progress stepper */
.progress-stepper {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

.progress-stepper.show {
    display: flex;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.step.active,
.step.done {
    opacity: 1;
}

.step-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-color, #E4E7EB);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, background 0.3s;
}

.step.active .step-indicator {
    border-color: var(--primary-color);
}

.step.done .step-indicator {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.step-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-color, #E4E7EB);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

.step.active .step-spinner {
    display: block;
}

.step.done .step-spinner {
    display: none;
}

.step.done .step-indicator::after {
    content: '';
    display: block;
    width: 8px;
    height: 14px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-medium);
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step.done .step-label {
    color: var(--text-dark);
}

.step-line {
    width: 32px;
    height: 2px;
    background: var(--border-color, #E4E7EB);
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results */
.results-card {
    display: none;
}

.results-card.show {
    display: block;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-color, #E4E7EB);
    margin: -2rem -2rem 0 -2rem;
    padding: 0 2rem;
}

.tab {
    padding: 0.875rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-medium);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.tab:hover {
    color: var(--text-dark);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-panels {
    padding-top: 1rem;
}

.tab-panel {
    display: none;
}

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

.tab-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.copy-btn {
    background: var(--background-color, #F5F6F7);
    border: 1px solid var(--border-color, #E4E7EB);
    padding: 0.4rem 0.875rem;
    border-radius: 6px;
    color: var(--text-medium);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.tab-content {
    min-height: 100px;
}

/* Analysis content (reused from summarizer) */
.transcriber .analysis-content {
    line-height: 1.9;
    font-size: 1rem;
    color: var(--text-color);
}

.transcriber .analysis-heading {
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

.transcriber .analysis-heading:first-child {
    margin-top: 0;
}

/* Error */
.transcriber .error {
    color: var(--error-color, #b91c1c);
    background: var(--error-bg, #fef2f2);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--error-border, #fecaca);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .transcriber {
        padding: 2rem 1rem;
    }

    .transcriber-title {
        font-size: 2rem;
    }

    .transcriber-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .transcriber-card {
        padding: 1.5rem;
    }

    .dropzone {
        padding: 2rem 1.5rem;
    }

    .tabs {
        margin: -1.5rem -1.5rem 0 -1.5rem;
        padding: 0 1rem;
    }

    .tab {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }

    .progress-stepper {
        gap: 0.375rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .step-line {
        width: 16px;
    }

    .transcriber button#submitBtn {
        padding: 0.875rem 1.5rem;
    }
}


/* 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;
}