/* Global Settings */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


body {
   background-color: #f4f7f6;
   color: #333;
   line-height: 1.6;
}


/* Header & Top Right Navigation */
header {
   background-color: #2c3e50;
   padding: 20px 40px;
   display: flex;
   justify-content: space-between;
   align-items: center;
   box-shadow: 0 4px 6px rgba(0,0,0,0.1);
   position: sticky;
   top: 0;
   z-index: 100;
}


.logo {
   color: #ecf0f1;
   font-size: 24px;
   font-weight: bold;
   letter-spacing: 1px;
}


nav ul {
   list-style: none;
   display: flex;
   gap: 15px;
   justify-content: flex-end;
}


nav ul li a {
   text-decoration: none;
   color: #bdc3c7;
   font-size: 16px;
   font-weight: 500;
   padding: 8px 16px;
   border-radius: 4px;
   transition: all 0.3s ease;
}


nav ul li a:hover, nav ul li a.active {
   background-color: #3498db;
   color: #fff;
   transform: scale(1.05);
}


/* Content Container Layout */
.content-container {
   max-width: 1100px;
   margin: 40px auto;
   padding: 30px;
   background: #fff;
   border-radius: 8px;
   box-shadow: 0 10px 20px rgba(0,0,0,0.05);
   min-height: 60vh;
}


/* Tab Management */
.tab-content {
   display: none;
   animation: fadeIn 0.6s ease;
}


.active-tab {
   display: block;
}


@keyframes fadeIn {
   from { opacity: 0; transform: translateY(15px); }
   to { opacity: 1; transform: translateY(0); }
}


/* Typography & Content Styling */
h1 {
   color: #2c3e50;
   margin-bottom: 20px;
   border-bottom: 3px solid #3498db;
   display: inline-block;
   padding-bottom: 5px;
}


h2, h3 {
   color: #2980b9;
   margin-top: 15px;
   margin-bottom: 10px;
}


p {
   margin-bottom: 15px;
   font-size: 17px;
}


/* Images Styling */
.section-image {
   width: 100%;
   border-radius: 8px;
   box-shadow: 0 4px 8px rgba(0,0,0,0.1);
   transition: transform 0.3s ease;
}


.section-image:hover {
   transform: scale(1.02);
}


.banner-image {
   width: 100%;
   height: 300px;
   object-fit: cover;
   border-radius: 8px;
   margin-bottom: 20px;
   box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


.split-layout {
   display: flex;
   gap: 20px;
   align-items: center;
}


.split-layout .text-content, .split-layout .image-content {
   flex: 1;
}


/* Deep Dive Cards */
.card-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 20px;
   margin-top: 20px;
}


.card {
   background: #f8f9fa;
   padding: 20px;
   border-radius: 8px;
   border-left: 5px solid #3498db;
   box-shadow: 0 2px 5px rgba(0,0,0,0.05);
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.card:hover {
   transform: translateY(-8px);
   box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}


/* Theories & Lists */
.theory-block {
   margin-bottom: 30px;
   padding: 15px;
   background: #fdfdfd;
   border: 1px solid #eee;
   border-radius: 8px;
   transition: background 0.3s ease;
}


.theory-block:hover {
   background: #f1f8ff;
}


.example-list {
   list-style-type: none;
   margin-bottom: 20px;
}


.example-list li {
   background: #ecf0f1;
   margin-bottom: 15px;
   padding: 20px;
   border-radius: 6px;
   font-size: 16px;
   border-left: 4px solid #e74c3c;
   transition: margin-left 0.3s ease;
}


.example-list li:hover {
   margin-left: 10px;
}


/* Video Grid and Embed Styling */
.video-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
   gap: 30px;
   margin-top: 20px;
}


.video-card {
   background: #fff;
   padding: 20px;
   border-radius: 8px;
   box-shadow: 0 4px 10px rgba(0,0,0,0.08);
   transition: transform 0.3s ease;
}


.video-card:hover {
   transform: translateY(-5px);
}


.video-card ul {
   margin-left: 20px;
   margin-bottom: 15px;
}


.video-wrapper {
   position: relative;
   padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
   height: 0;
   overflow: hidden;
   margin-bottom: 15px;
   border-radius: 6px;
}


.video-wrapper iframe {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
}


/* Citations APA formatting */
.reference-list p {
   padding-left: 36px;
   text-indent: -36px;
   margin-bottom: 10px;
   font-size: 15px;
}


.reference-list a {
   color: #3498db;
   text-decoration: none;
   word-break: break-all;
}


.reference-list a:hover {
   text-decoration: underline;
}


/* Mobile Responsiveness */
@media(max-width: 768px) {
   .split-layout {
       flex-direction: column;
   }
   .video-grid {
       grid-template-columns: 1fr;
   }
   nav ul {
       flex-wrap: wrap;
       justify-content: center;
   }
   header {
       flex-direction: column;
       gap: 15px;
   }
}
