/* SADG Website Styles */

/* Variables */
:root {
    --primary-blue: #0a2158; /* Deep blue from logo */
    --secondary-blue: #3498db; /* Changed from red to blue */
    --accent-color: #3498db; /* Light blue accent */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --bg-dark: #2c3e50;
    --border-color: #dddddd;
    --shadow: 0 0 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-red);
}

/* Header */
.header {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.logo img {
    height: 87px;
    margin-right: 10px;
}

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

/* Navigation */
.nav {
    display: flex;
}

.nav-item {
    margin-left: 1rem;
    position: relative;
}

.nav-link {
    color: var(--text-light);
    padding: 0.5rem 0;
    font-weight: 500;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-blue);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 33, 88, 0.9), rgba(10, 33, 88, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 1.5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-blue);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #2980b9;
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-blue);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-blue);
}

/* Cards */
.card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

/* Technology Integration Cards - Deep Blue Theme */
.tech-integration-card {
    background: #00008B !important;
    color: white !important;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,139,0.3);
}

.tech-integration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,139,0.4);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

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

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    margin-bottom: 30px;
}

.col-1 { width: 8.33%; }
.col-2 { width: 16.66%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33%; }
.col-5 { width: 41.66%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33%; }
.col-8 { width: 66.66%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }

/* Technology Domain Cards */
.tech-domain {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-blue);
    transition: var(--transition);
}

.tech-domain:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.tech-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.tech-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.tech-icon i {
    font-size: 1.5rem;
}

/* Tabs */
.tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    font-weight: 500;
    background-color: #f5f5f5;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 4px 4px 0 0;
}

.tab:hover {
    color: var(--text-light);
    background-color: var(--secondary-blue);
}

.tab.active {
    color: var(--text-light);
    background-color: var(--primary-blue);
    border-bottom: 3px solid var(--secondary-blue);
}

.tab-content {
    display: none;
}

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

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

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

/* Specific positioning for each footer section */
.footer-section:nth-child(1) {
    width: 25%;
}

.footer-section:nth-child(2) {
    width: 20%;
    margin-left: 8%;
}

.footer-section:nth-child(3) {
    width: 20%;
}

.footer-section:nth-child(4) {
    width: 25%;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--text-light);
}

.footer-section h3::after,
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-blue);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-blue);
    padding-left: 5px;
}

.social-links {
    list-style: none;
}

.social-links li {
    margin-bottom: 0.5rem;
}

.social-links a {
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-blue);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 10px;
    color: var(--secondary-blue);
}

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

/* Contact Bar */
.contact-bar {
    background-color: var(--secondary-blue);
    color: var(--text-light);
    padding: 0.8rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .col-md-1 { width: 8.33%; }
    .col-md-2 { width: 16.66%; }
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.33%; }
    .col-md-5 { width: 41.66%; }
    .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.33%; }
    .col-md-8 { width: 66.66%; }
    .col-md-9 { width: 75%; }
    .col-md-10 { width: 83.33%; }
    .col-md-11 { width: 91.66%; }
    .col-md-12 { width: 100%; }
    
    .footer-section {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .col-sm-1 { width: 8.33%; }
    .col-sm-2 { width: 16.66%; }
    .col-sm-3 { width: 25%; }
    .col-sm-4 { width: 33.33%; }
    .col-sm-5 { width: 41.66%; }
    .col-sm-6 { width: 50%; }
    .col-sm-7 { width: 58.33%; }
    .col-sm-8 { width: 66.66%; }
    .col-sm-9 { width: 75%; }
    .col-sm-10 { width: 83.33%; }
    .col-sm-11 { width: 91.66%; }
    .col-sm-12 { width: 100%; }
    
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 1rem;
        justify-content: center;
    }
    
    .nav {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .nav {
        display: none;
    }
    
    .nav.active {
        display: flex;
    }
    
    .footer-section {
        width: 100%;
    }
}

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

.animate {
    animation: fadeIn 0.8s ease forwards;
}

/* Technology Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

/* Technology Card */
.tech-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.tech-card h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Content Row */
.content-row {
    display: flex;
    margin-bottom: 2rem;
    align-items: center;
}

.image-container {
    width: 40%;
    margin-right: 2rem;
}

.image-container img, .image-container video {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Ensure videos don't overlap with text in technology domains */
.tech-domain .content-row {
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.tech-domain .image-container {
    width: 40%;
    margin-right: 2.5rem;
    align-self: flex-start;
}

.tech-domain .text-content {
    width: 55%;
    padding-top: 0.5rem;
}

.text-content {
    width: 60%;
}

@media (max-width: 768px) {
    .content-row {
        flex-direction: column;
    }
    
    .image-container, .text-content {
        width: 100%;
    }
    
    .image-container {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}
/* This is added by Tenda For search*/
.search_button {
    width: 70px;
    height: 30px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    margin-left: 8px;
    cursor: pointer;

    background: #1a73e8;
    color: #ffffff;
    letter-spacing: 0.04em;

    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.4);
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.search_button:hover {
    background: #1558b0;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.5);
    transform: translateY(-1px);
}

.search_button:active {
    background: #0f3f82;
    box-shadow: none;
    transform: translateY(0px);
}

.search_button:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}
/* ---- Overlay ---- */
.search_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 30, 80, 0.35);
    backdrop-filter: blur(6px);
    z-index: 999;
    justify-content: center;
    align-items: center;
}
.search_overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

/* ---- Popup Box ---- */
.search_popup {
    background: #ffffff;
    border-radius: 16px;
    width: 540px;
    max-width: 92vw;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 4px 24px rgba(26, 115, 232, 0.12),
        0 24px 64px rgba(0, 0, 0, 0.18);
    animation: slideUp 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

/* ---- Header ---- */
.popup_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: linear-gradient(135deg, #1a73e8, #0d56c2);
    color: #fff;
}
.popup_header span {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.close_btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.close_btn:hover { background: rgba(255,255,255,0.28); }

/* ---- Search Bar inside popup ---- */
.popup_search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    border-bottom: 1px solid #eef2fb;
    background: #f8faff;
}
.popup_search input {
    flex: 1;
    height: 38px;
    padding: 0 14px;
    border: 1.5px solid #d0e1f9;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a2e;
    outline: none;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.popup_search input::placeholder { color: #a0b4d0; }
.popup_search input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}
#popup_search_btn {
    height: 38px;
    padding: 0 18px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.15s, transform 0.1s;
}
#popup_search_btn:hover {
    background: #1558b0;
    transform: translateY(-1px);
}
#popup_search_btn:active {
    background: #0f3f82;
    transform: translateY(0);
}

/* ---- Body / Results ---- */
.popup_body {
    padding: 12px 22px 20px;
    overflow-y: auto;
    flex: 1;
}
.popup_body::-webkit-scrollbar { width: 4px; }
.popup_body::-webkit-scrollbar-thumb {
    background: #d0e1f9;
    border-radius: 4px;
}

/* ---- State Message ---- */
.state_msg {
    text-align: center;
    color: #a0b4d0;
    font-size: 13px;
    padding: 36px 0;
}

/* ---- Result Items ---- */
.result_item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #eef2fb;
    margin-bottom: 10px;
    transition: background 0.12s, border-color 0.12s;
}
.result_item:hover {
    background: #f0f6ff;
    border-color: #1a73e8;
}

/* Name as heading */
.result_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.result_name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

/* Divider line */
.result_divider {
    border: none;
    border-top: 1px solid #e0eaf8;
    margin: 2px 0;
}

/* Description underneath */
.result_description {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.result_domain {
    font-size: 11px;
    color: #a0b4d0;
    background: #f0f6ff;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.result_expand {
    font-size: 12px;
    color: #1a73e8;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
}
.result_expand:hover { text-decoration: underline; }

.result_long_desc {
    padding: 12px 14px;
    background: #f8faff;
    border-left: 3px solid #1a73e8;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #444;
    line-height: 1.7;
    white-space: pre-wrap;
}

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