/* ==========================================================================
 Merged Canvas & Tourism Theme Stylesheet (Fully Inlined)
 ========================================================================== */

/* =====================
 1. ROOT VARIABLES
===================== */
:root {
 --primary-color: #dda73a;
 --accent-color: #dda73a;
 --secondary-color: #F8F9FA;
 --border-color: #CED4DA;

 --success-color: #28A745;
 --warning-color: #FFC107;
 --error-color: #DC3545; /* Updated from 'none' for form validation */

 --text-color: #212529;
 --text-color-light: #ffffff;
 --muted-text: #6C757D;
  --danger: #DC3545;

 --font-family-sans: 'Inter', 'Roboto', Helvetica, Arial, sans-serif;
 --font-size-base: 1rem;
 --line-height-base: 1.6;
 --font-size-h1: 2rem;
 --font-size-h2: 1.75rem;
 --font-size-h3: 1.5rem;
 --font-size-h4: 1.25rem;

 --card-radius: 8px;
}

 body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Inter,Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg)}

.bg-light-dark {
 background-color: #ecf572;
}

/* =====================
 2. BASE STYLES
===================== */
body {
 margin: 0;
 font-family: var(--font-family-sans);
 font-size: var(--font-size-base);
 line-height: var(--line-height-base);
 color: var(--text-color);
 background-color: var(--secondary-color);
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}


/* =====================
 3. TYPOGRAPHY
===================== */
h1, h2, h3, h4, h5, h6 {
 color: var(--text-color);
 font-weight: 600;
 margin: 1.25em 0 0.5em;
 line-height: 1.2;
}
h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }

p {
 font-size: 14px;
 margin-bottom: 1em;
}

.helper-text {
 font-size: 12px;
 color: var(--muted-text);
}

a {
 color: var(--accent-color);
 text-decoration: none;
 transition: color 0.2s ease-in-out;
}
a:hover {
 color: var(--primary-color);
 text-decoration: underline;
}

/* =====================
 4. BUTTONS (UPDATED)
===================== */
.btn {
 padding: 10px 14px;
 border: 1px solid var(--border-color);
 border-radius: 12px;
 background: #fff;
 cursor: pointer;
 transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.btn.primary {
 background: var(--primary-color);
 color: #111;
 border-color: var(--primary-color);
 font-weight: 600;
}
.btn.primary:hover {
  background-color: #b0852e;
}
.actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:16px
}

/* =====================
 5. TABLES
===================== */
table {
 width: 100%;
 border-collapse: collapse;
 margin-bottom: 1em;
}
th, td {
 padding: 0.75em;
 border: 1px solid var(--border-color);
 text-align: left;
}
th {
 background-color: #e9ecef;
 font-weight: 600;
}

/* =====================
 6. FORM AREA (NEW)
===================== */
.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px;
}
.grid {
  display: grid;
  gap: 12px;
}
.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
label {
  display: block;
  font-size: 14px!important;
  margin: 6px 0 4px;
  color: #374151;
}
input[type=text],
input[type=email],
input[type=tel],
input[type=password],
select,
.form-control {
  width: 100%;
  height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #fff;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}
.hint {
  font-size: 12px;
  color: var(--muted-text);
}
.req::after {
  content: " *";
  color: var(--danger);
}
.badge {
  background: rgba(221,167,58,.15);
  color: #7a5913;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(221,167,58,.35);
}
.group-title {
  font-weight: 600;
  font-size: 14px;
  margin: 18px 0 6px;
  color: #374151;
}

/* =====================
 7. TOP STRIP (Accessibility & Language)
===================== */
.top-strip {
 background-color: #f0f0f0;
 padding: 8px 0;
 font-size: 0.85rem;
 color: #555;
 border-bottom: 1px solid #e0e0e0;
}
.top-strip a {
 color: #555;
 text-decoration: none;
 margin-right: 15px;
 transition: color 0.2s ease;
}
.top-strip a:hover {
 color: var(--accent-color);
}
.top-strip .access-links span {
 margin-right: 5px;
}
.top-strip .access-links a {
 font-weight: bold;
}
.top-strip .language-select {
 border: 1px solid #ccc;
 padding: 3px 8px;
 border-radius: 4px;
 cursor: pointer;
 background-color: #fff;
}

/* =====================
 8. MAIN HEADER (Logo & Search)
===================== */
.main-header {
 background-color: #000c;
 padding: 20px 0;
 border-bottom: 1px solid #e9ecef;
}
.main-header .portal-logo {
 display: flex;
 align-items: center;
}
.main-header .portal-logo img {
 height: 60px;
 margin-right: 15px;
}
.main-header .portal-title h1 {
 font-size: 1.8rem;
 font-weight: 700;
 color: var(--primary-color);
 margin-bottom: 0;
}
.main-header .portal-title p {
 font-size: 0.9rem;
 color: #666;
 margin-top: 5px;
 margin-bottom: 0;
}
.main-header .search-bar .input-group {
 max-width: 300px;
 margin-left: auto;
}
.main-header .search-bar .form-control {
 border-radius: .25rem 0 0 .25rem;
 border-color: var(--border-color);
}
.main-header .search-bar .btn-outline-secondary {
 border-radius: 0 .25rem .25rem 0;
 border-color: var(--border-color);
 color: var(--muted-text);
}

/* =====================
 9. MAIN NAVBAR
===================== */
.main-navbar {
 background-color: var(--primary-color);
 padding: 0;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.main-navbar .navbar-nav .nav-link {
 color: white;
 font-weight: 600;
 padding: 15px 20px;
 transition: background-color 0.3s ease, color 0.3s ease;
 border-radius: 0;
}
.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-link.active {
 background-color: #4b3504;
 color: white;
}
.main-navbar .navbar-toggler {
 border-color: rgba(255,255,255,0.2);
}
.main-navbar .navbar-toggler-icon {
 filter: brightness(0) invert(1);
}
.main-navbar .dropdown-menu {
 background-color: #003060;
 border: none;
 border-radius: 0;
}
.main-navbar .dropdown-item {
 color: white;
 padding: 10px 20px;
 transition: background-color 0.2s ease;
}
.main-navbar .dropdown-item:hover {
 background-color: var(--primary-color);
}

/* =====================
 10. HERO SECTION
===================== */
.hero-section {
 background: url('../images/home-hero.jpg') no-repeat center center / cover;
 color: white;
 padding: 100px 0;
 text-align: center;
 position: relative;
 z-index: 1;
 box-shadow: inset 0 -10px 20px rgba(0,0,0,0.1);
}
.hero-section::before {
 content: '';
 position: absolute;
 top: 0; left: 0; right: 0; bottom: 0;
 background-color: rgba(0, 64, 133, 0.5);
 z-index: -1;
}
.hero-section h1 {
 font-size: 3.5rem;
 font-weight: 700;
 margin-bottom: 15px;
 text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero-section p {
 font-size: 1.5rem;
 margin-bottom: 40px;
 opacity: 0.9;
 text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
.hero-section .btn {
 padding: 15px 35px;
 font-size: 1.1rem;
 font-weight: bold;
 border-radius: 5px;
 margin: 0 10px;
 transition: all 0.3s ease;
}
.hero-section .btn-light {
 background-color: #fff;
 color: var(--primary-color);
 border-color: #fff;
}
.hero-section .btn-light:hover {
 background-color: #e2e6ea;
 transform: translateY(-2px);
 box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.hero-section .btn-outline-light {
 color: white;
 border-color: white;
}
.hero-section .btn-outline-light:hover {
 background-color: rgba(255,255,255,0.2);
 transform: translateY(-2px);
 box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* =====================
 11. CONTENT & FEATURE SECTIONS
===================== */
.content-section {
 padding: 60px 0;
 background-color: #fff;
 border-bottom: 1px solid #e9ecef;
}
.content-section:nth-of-type(odd) {
 background-color: var(--secondary-color);
}
.content-section h2 {
 text-align: center;
 margin-bottom: 40px;
 font-weight: 600;
 color: var(--primary-color);
 position: relative;
 padding-bottom: 10px;
}
.content-section h2::after {
 content: '';
 position: absolute;
 left: 50%;
 bottom: 0;
 transform: translateX(-50%);
 width: 80px;
 height: 3px;
 background-color: var(--accent-color);
 border-radius: 2px;
}

/* Horizontal feature cards */
.feature-item-horizontal {
 background-color: #fff;
 border: 1px solid #e9ecef;
 border-radius: 8px;
 box-shadow: 0 2px 10px rgba(0,0,0,0.05);
 padding: 30px;
 margin-bottom: 40px;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item-horizontal:hover {
 transform: translateY(-3px);
 box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.feature-item-horizontal .icon-large {
 font-size: 4rem;
 color: var(--accent-color);
 margin-bottom: 15px;
}
.feature-item-horizontal h3 {
 font-size: 1.5rem;
 font-weight: 600;
 color: var(--primary-color);
 margin-bottom: 10px;
}
.feature-item-horizontal p {
 font-size: 1rem;
 color: #495057;
}

/* =====================
 12. ELIGIBILITY SECTION
===================== */
.eligibility-section {
 background: linear-gradient(rgba(0, 64, 133, 0.8), rgba(0, 64, 133, 0.8)), url('../images/apply-bg.jpg') no-repeat center / cover;
 color: white;
 padding: 60px 0;
 border-bottom: 1px solid #e9ecef;
}
.eligibility-section h2 {
 color: white;
}
.eligibility-section h2::after {
 background-color: var(--accent-color);
}
.eligibility-list {
 list-style: none;
 padding: 0;
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 15px;
}
.eligibility-list li {
 background-color: rgba(255,255,255,0.9);
 padding: 15px 20px;
 border-radius: 8px;
 font-size: 1.05rem;
 font-weight: 500;
 color: var(--primary-color);
 border: 1px solid rgba(0,64,133,0.2);
 display: flex;
 align-items: center;
 gap: 10px;
 box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}
.eligibility-list li i {
 color: var(--accent-color);
}

/* =====================
 13. FAQ / ACCORDION SECTION
===================== */
.faq-section .accordion-item {
 border: none;
 margin-bottom: 15px;
 border-radius: 5px;
 box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.faq-section .accordion-button {
 background-color: #e6f7ff;
 color: var(--primary-color);
 font-weight: 600;
 border-radius: 5px;
 margin-bottom: 10px;
 transition: background-color 0.2s ease;
}
.faq-section .accordion-button:not(.collapsed) {
 background-color: var(--accent-color);
 color: white;
 box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}
.faq-section .accordion-button:focus {
 box-shadow: 0 0 0 0.25rem rgba(0,123,255,0.25);
}
.faq-section .accordion-body {
 background-color: var(--secondary-color);
 border: 1px solid #e9ecef;
 border-top: none;
 border-radius: 0 0 5px 5px;
 color: #495057;
 font-size: 0.95rem;
}

/* =====================
 14. CONTACT / SUPPORT SECTION
===================== */
.contact-support-section {
 text-align: center;
 padding: 60px 0;
}
.contact-support-section p {
 font-size: 1.1rem;
 margin-bottom: 30px;
 color: #495057;
}
.contact-support-section .btn-primary {
 background-color: var(--accent-color);
 border-color: var(--accent-color);
 color: white;
 padding: 12px 28px;
 border-radius: 5px;
 font-weight: bold;
 transition: all 0.3s ease;
}
.contact-support-section .btn-primary:hover {
 background-color: #0056b3;
 border-color: #0056b3;
 transform: translateY(-2px);
 box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.contact-support-section .contact-info {
 margin-top: 30px;
 font-size: 1rem;
 color: #555;
}
.contact-support-section .contact-info a {
 color: var(--accent-color);
 text-decoration: none;
 font-weight: bold;
}
.contact-support-section .contact-info a:hover {
 text-decoration: underline;
}

/* =====================
 15. FOOTER
===================== */
.footer {
 background-color: #212529;
 color: white;
 padding: 50px 0 20px;
 font-size: 0.9rem;
}
.footer h5 {
 color: var(--accent-color);
 margin-bottom: 20px;
 font-weight: 600;
}
.footer ul {
 list-style: none;
 padding: 0;
}
.footer ul li {
 margin-bottom: 8px;
}
.footer ul li a {
 color: #ccc;
 text-decoration: none;
 transition: color 0.2s ease;
}
.footer ul li a:hover {
 color: var(--accent-color);
}
.footer .contact-details p {
 margin-bottom: 5px;
 color: #ccc;
}
.footer .contact-details a {
 color: #ccc;
 text-decoration: none;
}
.footer .contact-details a:hover {
 color: var(--accent-color);
}
.footer .social-icons a {
 font-size: 1.6rem;
 margin-right: 15px;
 color: white;
 transition: color 0.2s ease;
}
.footer .social-icons a:hover {
 color: var(--accent-color);
}
.footer .copyright {
 border-top: 1px solid rgba(255,255,255,0.1);
 padding-top: 20px;
 margin-top: 30px;
 font-size: 0.85rem;
 color: #aaa;
}

/* =====================
 16. CARD (UPDATED)
===================== */
.card {
 background: #fff;
 border: 1px solid var(--border-color);
 border-radius: 16px;
 padding: 22px;
 margin-bottom: 1.5rem;
}
.card-header {
 background-color: var(--primary-color);
 color: white;
 border-radius: var(--card-radius) var(--card-radius) 0 0;
 padding: 16px;
 text-align: center;
}

/* =====================
 17. ACCESSIBILITY & ANIMATION
===================== */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
 outline: 2px dashed var(--accent-color);
 outline-offset: 2px;
}
.fade-in {
 animation: fadeIn 0.6s ease-out both;
}
@keyframes fadeIn {
 from { opacity: 0; transform: translateY(15px); }
 to { opacity: 1; transform: translateY(0); }
}

/* =====================
 18. UTILITIES
===================== */
.sr-only {
 position: absolute;
 width: 1px;
 height: 1px;
 overflow: hidden;
 clip: rect(0, 0, 0, 0);
 border: 0;
}
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.pt-24 { padding-top: 24px; }
.pb-24 { padding-bottom: 24px; }

/* =====================
 19. MEDIA QUERIES
===================== */
@media (min-width: 768px) {
 :root {
  --font-size-base: 1.1rem;
  --font-size-h1: 2.5rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.75rem;
 }
}
@media (max-width: 991.98px) {
 .hero-section {
  padding: 80px 0;
 }
 .hero-section h1 {
  font-size: 2.8rem;
 }
 .hero-section p {
  font-size: 1.3rem;
 }
 .main-navbar .navbar-collapse {
  background-color: #003060a6;
  padding: 15px;
  border-radius: 0;
  margin-top: 0;
 }
 .main-navbar .navbar-nav .nav-link {
  padding: 10px 15px;
 }
 .main-header .portal-title h1 {
  font-size: 1.5rem;
 }
 .main-header .portal-title p {
  font-size: 0.8rem;
 }
 .main-header .search-bar .input-group {
  max-width: none;
  margin-top: 15px;
 }
 .footer .col-md-3 {
  margin-bottom: 30px;
 }
 .feature-item-horizontal .icon-large {
  margin-bottom: 15px;
 }
}
@media (max-width: 820px) {
  .g2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767.98px) {
 .top-strip {
  text-align: center;
 }
 .top-strip .access-links {
  margin-bottom: 8px;
 }
 .main-header {
  text-align: center;
  padding: 15px 0;
 }
 .main-header .portal-logo {
  justify-content: center;
  margin-bottom: 15px;
 }
 .main-header .search-bar .input-group {
  width: 100%;
 }
 .hero-section {
  padding: 60px 0;
 }
 .hero-section h1 {
  font-size: 2.2rem;
 }
 .hero-section p {
  font-size: 1.1rem;
 }
 .hero-section .btn {
  width: 100%;
  margin: 5px 0;
 }
 .feature-item-horizontal {
  text-align: center !important;
 }
 .eligibility-list {
  grid-template-columns: 1fr;
 }
 .footer, .footer .social-icons {
  text-align: center;
 }
}
